Generate SDK by new Generator

This commit is contained in:
wb-hx510875
2019-09-18 11:18:56 +08:00
parent be86048a76
commit f3eaf1d292
9054 changed files with 325898 additions and 381375 deletions

View File

@@ -0,0 +1,121 @@
/*
* 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/AddSmsSignRequest.h>
using AlibabaCloud::Dysmsapi::Model::AddSmsSignRequest;
AddSmsSignRequest::AddSmsSignRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "AddSmsSign")
{}
AddSmsSignRequest::~AddSmsSignRequest()
{}
long AddSmsSignRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddSmsSignRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddSmsSignRequest::getRemark()const
{
return remark_;
}
void AddSmsSignRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string AddSmsSignRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddSmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string AddSmsSignRequest::getSignName()const
{
return signName_;
}
void AddSmsSignRequest::setSignName(const std::string& signName)
{
signName_ = signName;
setCoreParameter("SignName", signName);
}
std::vector<AddSmsSignRequest::SignFileList> AddSmsSignRequest::getSignFileList()const
{
return signFileList_;
}
void AddSmsSignRequest::setSignFileList(const std::vector<SignFileList>& signFileList)
{
signFileList_ = signFileList;
int i = 0;
for(int i = 0; i!= signFileList.size(); i++) {
auto obj = signFileList.at(i);
std::string str ="SignFileList."+ std::to_string(i);
setCoreParameter(str + ".FileContents", obj.fileContents);
setCoreParameter(str + ".FileSuffix", obj.fileSuffix);
}
}
std::string AddSmsSignRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddSmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AddSmsSignRequest::getOwnerId()const
{
return ownerId_;
}
void AddSmsSignRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int AddSmsSignRequest::getSignSource()const
{
return signSource_;
}
void AddSmsSignRequest::setSignSource(int signSource)
{
signSource_ = signSource;
setCoreParameter("SignSource", std::to_string(signSource));
}

View File

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

View 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/dysmsapi/model/AddSmsTemplateRequest.h>
using AlibabaCloud::Dysmsapi::Model::AddSmsTemplateRequest;
AddSmsTemplateRequest::AddSmsTemplateRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "AddSmsTemplate")
{}
AddSmsTemplateRequest::~AddSmsTemplateRequest()
{}
long AddSmsTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddSmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddSmsTemplateRequest::getRemark()const
{
return remark_;
}
void AddSmsTemplateRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string AddSmsTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddSmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
int AddSmsTemplateRequest::getTemplateType()const
{
return templateType_;
}
void AddSmsTemplateRequest::setTemplateType(int templateType)
{
templateType_ = templateType;
setCoreParameter("TemplateType", std::to_string(templateType));
}
std::string AddSmsTemplateRequest::getTemplateName()const
{
return templateName_;
}
void AddSmsTemplateRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setCoreParameter("TemplateName", templateName);
}
std::string AddSmsTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddSmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AddSmsTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void AddSmsTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AddSmsTemplateRequest::getTemplateContent()const
{
return templateContent_;
}
void AddSmsTemplateRequest::setTemplateContent(const std::string& templateContent)
{
templateContent_ = templateContent;
setCoreParameter("TemplateContent", templateContent);
}

View File

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

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dysmsapi/model/DeleteSmsSignRequest.h>
using AlibabaCloud::Dysmsapi::Model::DeleteSmsSignRequest;
DeleteSmsSignRequest::DeleteSmsSignRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteSmsSign")
{}
DeleteSmsSignRequest::~DeleteSmsSignRequest()
{}
long DeleteSmsSignRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSmsSignRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSmsSignRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteSmsSignRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSmsSignRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSmsSignRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteSmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteSmsSignRequest::getSignName()const
{
return signName_;
}
void DeleteSmsSignRequest::setSignName(const std::string& signName)
{
signName_ = signName;
setCoreParameter("SignName", signName);
}

View File

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

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dysmsapi/model/DeleteSmsTemplateRequest.h>
using AlibabaCloud::Dysmsapi::Model::DeleteSmsTemplateRequest;
DeleteSmsTemplateRequest::DeleteSmsTemplateRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "DeleteSmsTemplate")
{}
DeleteSmsTemplateRequest::~DeleteSmsTemplateRequest()
{}
long DeleteSmsTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteSmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteSmsTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteSmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteSmsTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteSmsTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteSmsTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteSmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteSmsTemplateRequest::getTemplateCode()const
{
return templateCode_;
}
void DeleteSmsTemplateRequest::setTemplateCode(const std::string& templateCode)
{
templateCode_ = templateCode;
setCoreParameter("TemplateCode", templateCode);
}

View File

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

View File

@@ -0,0 +1,121 @@
/*
* 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/ModifySmsSignRequest.h>
using AlibabaCloud::Dysmsapi::Model::ModifySmsSignRequest;
ModifySmsSignRequest::ModifySmsSignRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "ModifySmsSign")
{}
ModifySmsSignRequest::~ModifySmsSignRequest()
{}
long ModifySmsSignRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifySmsSignRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifySmsSignRequest::getRemark()const
{
return remark_;
}
void ModifySmsSignRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string ModifySmsSignRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifySmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ModifySmsSignRequest::getSignName()const
{
return signName_;
}
void ModifySmsSignRequest::setSignName(const std::string& signName)
{
signName_ = signName;
setCoreParameter("SignName", signName);
}
std::vector<ModifySmsSignRequest::SignFileList> ModifySmsSignRequest::getSignFileList()const
{
return signFileList_;
}
void ModifySmsSignRequest::setSignFileList(const std::vector<SignFileList>& signFileList)
{
signFileList_ = signFileList;
int i = 0;
for(int i = 0; i!= signFileList.size(); i++) {
auto obj = signFileList.at(i);
std::string str ="SignFileList."+ std::to_string(i);
setCoreParameter(str + ".FileContents", obj.fileContents);
setCoreParameter(str + ".FileSuffix", obj.fileSuffix);
}
}
std::string ModifySmsSignRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifySmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ModifySmsSignRequest::getOwnerId()const
{
return ownerId_;
}
void ModifySmsSignRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int ModifySmsSignRequest::getSignSource()const
{
return signSource_;
}
void ModifySmsSignRequest::setSignSource(int signSource)
{
signSource_ = signSource;
setCoreParameter("SignSource", std::to_string(signSource));
}

View File

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

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dysmsapi/model/ModifySmsTemplateRequest.h>
using AlibabaCloud::Dysmsapi::Model::ModifySmsTemplateRequest;
ModifySmsTemplateRequest::ModifySmsTemplateRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "ModifySmsTemplate")
{}
ModifySmsTemplateRequest::~ModifySmsTemplateRequest()
{}
long ModifySmsTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifySmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifySmsTemplateRequest::getRemark()const
{
return remark_;
}
void ModifySmsTemplateRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string ModifySmsTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifySmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
int ModifySmsTemplateRequest::getTemplateType()const
{
return templateType_;
}
void ModifySmsTemplateRequest::setTemplateType(int templateType)
{
templateType_ = templateType;
setCoreParameter("TemplateType", std::to_string(templateType));
}
std::string ModifySmsTemplateRequest::getTemplateName()const
{
return templateName_;
}
void ModifySmsTemplateRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setCoreParameter("TemplateName", templateName);
}
std::string ModifySmsTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifySmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ModifySmsTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void ModifySmsTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifySmsTemplateRequest::getTemplateContent()const
{
return templateContent_;
}
void ModifySmsTemplateRequest::setTemplateContent(const std::string& templateContent)
{
templateContent_ = templateContent;
setCoreParameter("TemplateContent", templateContent);
}
std::string ModifySmsTemplateRequest::getTemplateCode()const
{
return templateCode_;
}
void ModifySmsTemplateRequest::setTemplateCode(const std::string& templateCode)
{
templateCode_ = templateCode;
setCoreParameter("TemplateCode", templateCode);
}

View File

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

View File

@@ -36,15 +36,26 @@ void QuerySendDetailsRequest::setResourceOwnerId(long resourceOwnerId)
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
std::string QuerySendDetailsRequest::getPhoneNumber()const
{
return resourceOwnerAccount_;
return phoneNumber_;
}
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
phoneNumber_ = phoneNumber;
setCoreParameter("PhoneNumber", phoneNumber);
}
std::string QuerySendDetailsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QuerySendDetailsRequest::getSendDate()const
@@ -58,28 +69,6 @@ void QuerySendDetailsRequest::setSendDate(const std::string& sendDate)
setCoreParameter("SendDate", sendDate);
}
std::string QuerySendDetailsRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void QuerySendDetailsRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setCoreParameter("PhoneNumber", phoneNumber);
}
std::string QuerySendDetailsRequest::getBizId()const
{
return bizId_;
}
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setCoreParameter("BizId", bizId);
}
long QuerySendDetailsRequest::getPageSize()const
{
return pageSize_;
@@ -91,6 +80,17 @@ void QuerySendDetailsRequest::setPageSize(long pageSize)
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string QuerySendDetailsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QuerySendDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QuerySendDetailsRequest::getCurrentPage()const
{
return currentPage_;
@@ -113,14 +113,14 @@ void QuerySendDetailsRequest::setOwnerId(long ownerId)
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QuerySendDetailsRequest::getAccessKeyId()const
std::string QuerySendDetailsRequest::getBizId()const
{
return accessKeyId_;
return bizId_;
}
void QuerySendDetailsRequest::setAccessKeyId(const std::string& accessKeyId)
void QuerySendDetailsRequest::setBizId(const std::string& bizId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
bizId_ = bizId;
setCoreParameter("BizId", bizId);
}

View File

@@ -35,13 +35,9 @@ QuerySendDetailsResult::~QuerySendDetailsResult()
void QuerySendDetailsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSmsSendDetailDTOs = value["SmsSendDetailDTOs"]["SmsSendDetailDTO"];
for (auto value : allSmsSendDetailDTOs)

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dysmsapi/model/QuerySmsSignRequest.h>
using AlibabaCloud::Dysmsapi::Model::QuerySmsSignRequest;
QuerySmsSignRequest::QuerySmsSignRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsSign")
{}
QuerySmsSignRequest::~QuerySmsSignRequest()
{}
long QuerySmsSignRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QuerySmsSignRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QuerySmsSignRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QuerySmsSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QuerySmsSignRequest::getOwnerId()const
{
return ownerId_;
}
void QuerySmsSignRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QuerySmsSignRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QuerySmsSignRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QuerySmsSignRequest::getSignName()const
{
return signName_;
}
void QuerySmsSignRequest::setSignName(const std::string& signName)
{
signName_ = signName;
setCoreParameter("SignName", signName);
}

View File

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

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dysmsapi/model/QuerySmsTemplateRequest.h>
using AlibabaCloud::Dysmsapi::Model::QuerySmsTemplateRequest;
QuerySmsTemplateRequest::QuerySmsTemplateRequest() :
RpcServiceRequest("dysmsapi", "2017-05-25", "QuerySmsTemplate")
{}
QuerySmsTemplateRequest::~QuerySmsTemplateRequest()
{}
long QuerySmsTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QuerySmsTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QuerySmsTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QuerySmsTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QuerySmsTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void QuerySmsTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QuerySmsTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QuerySmsTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QuerySmsTemplateRequest::getTemplateCode()const
{
return templateCode_;
}
void QuerySmsTemplateRequest::setTemplateCode(const std::string& templateCode)
{
templateCode_ = templateCode;
setCoreParameter("TemplateCode", templateCode);
}

View 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/dysmsapi/model/QuerySmsTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dysmsapi;
using namespace AlibabaCloud::Dysmsapi::Model;
QuerySmsTemplateResult::QuerySmsTemplateResult() :
ServiceResult()
{}
QuerySmsTemplateResult::QuerySmsTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QuerySmsTemplateResult::~QuerySmsTemplateResult()
{}
void QuerySmsTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["TemplateStatus"].isNull())
templateStatus_ = std::stoi(value["TemplateStatus"].asString());
if(!value["Reason"].isNull())
reason_ = value["Reason"].asString();
if(!value["TemplateCode"].isNull())
templateCode_ = value["TemplateCode"].asString();
if(!value["TemplateType"].isNull())
templateType_ = std::stoi(value["TemplateType"].asString());
if(!value["TemplateName"].isNull())
templateName_ = value["TemplateName"].asString();
if(!value["TemplateContent"].isNull())
templateContent_ = value["TemplateContent"].asString();
if(!value["CreateDate"].isNull())
createDate_ = value["CreateDate"].asString();
}
std::string QuerySmsTemplateResult::getTemplateCode()const
{
return templateCode_;
}
std::string QuerySmsTemplateResult::getMessage()const
{
return message_;
}
std::string QuerySmsTemplateResult::getTemplateContent()const
{
return templateContent_;
}
std::string QuerySmsTemplateResult::getTemplateName()const
{
return templateName_;
}
int QuerySmsTemplateResult::getTemplateType()const
{
return templateType_;
}
std::string QuerySmsTemplateResult::getCode()const
{
return code_;
}
std::string QuerySmsTemplateResult::getCreateDate()const
{
return createDate_;
}
std::string QuerySmsTemplateResult::getReason()const
{
return reason_;
}
int QuerySmsTemplateResult::getTemplateStatus()const
{
return templateStatus_;
}

View File

@@ -25,17 +25,6 @@ SendBatchSmsRequest::SendBatchSmsRequest() :
SendBatchSmsRequest::~SendBatchSmsRequest()
{}
std::string SendBatchSmsRequest::getTemplateParamJson()const
{
return templateParamJson_;
}
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
{
templateParamJson_ = templateParamJson;
setCoreParameter("TemplateParamJson", templateParamJson);
}
long SendBatchSmsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -47,6 +36,28 @@ void SendBatchSmsRequest::setResourceOwnerId(long resourceOwnerId)
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SendBatchSmsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string SendBatchSmsRequest::getTemplateParamJson()const
{
return templateParamJson_;
}
void SendBatchSmsRequest::setTemplateParamJson(const std::string& templateParamJson)
{
templateParamJson_ = templateParamJson;
setCoreParameter("TemplateParamJson", templateParamJson);
}
std::string SendBatchSmsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
@@ -58,17 +69,6 @@ void SendBatchSmsRequest::setResourceOwnerAccount(const std::string& resourceOwn
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
{
return smsUpExtendCodeJson_;
}
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
{
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
setCoreParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
}
long SendBatchSmsRequest::getOwnerId()const
{
return ownerId_;
@@ -80,6 +80,17 @@ void SendBatchSmsRequest::setOwnerId(long ownerId)
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string SendBatchSmsRequest::getSmsUpExtendCodeJson()const
{
return smsUpExtendCodeJson_;
}
void SendBatchSmsRequest::setSmsUpExtendCodeJson(const std::string& smsUpExtendCodeJson)
{
smsUpExtendCodeJson_ = smsUpExtendCodeJson;
setCoreParameter("SmsUpExtendCodeJson", smsUpExtendCodeJson);
}
std::string SendBatchSmsRequest::getSignNameJson()const
{
return signNameJson_;
@@ -113,14 +124,3 @@ void SendBatchSmsRequest::setPhoneNumberJson(const std::string& phoneNumberJson)
setCoreParameter("PhoneNumberJson", phoneNumberJson);
}
std::string SendBatchSmsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SendBatchSmsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,13 +35,9 @@ SendBatchSmsResult::~SendBatchSmsResult()
void SendBatchSmsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BizId"].isNull())
bizId_ = value["BizId"].asString();

View File

@@ -25,17 +25,6 @@ SendSmsRequest::SendSmsRequest() :
SendSmsRequest::~SendSmsRequest()
{}
std::string SendSmsRequest::getSmsUpExtendCode()const
{
return smsUpExtendCode_;
}
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
{
smsUpExtendCode_ = smsUpExtendCode;
setCoreParameter("SmsUpExtendCode", smsUpExtendCode);
}
long SendSmsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -47,6 +36,28 @@ void SendSmsRequest::setResourceOwnerId(long resourceOwnerId)
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SendSmsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string SendSmsRequest::getSmsUpExtendCode()const
{
return smsUpExtendCode_;
}
void SendSmsRequest::setSmsUpExtendCode(const std::string& smsUpExtendCode)
{
smsUpExtendCode_ = smsUpExtendCode;
setCoreParameter("SmsUpExtendCode", smsUpExtendCode);
}
std::string SendSmsRequest::getSignName()const
{
return signName_;
@@ -80,17 +91,6 @@ void SendSmsRequest::setPhoneNumbers(const std::string& phoneNumbers)
setCoreParameter("PhoneNumbers", phoneNumbers);
}
std::string SendSmsRequest::getOutId()const
{
return outId_;
}
void SendSmsRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setCoreParameter("OutId", outId);
}
long SendSmsRequest::getOwnerId()const
{
return ownerId_;
@@ -102,6 +102,17 @@ void SendSmsRequest::setOwnerId(long ownerId)
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string SendSmsRequest::getOutId()const
{
return outId_;
}
void SendSmsRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setCoreParameter("OutId", outId);
}
std::string SendSmsRequest::getTemplateCode()const
{
return templateCode_;
@@ -113,17 +124,6 @@ void SendSmsRequest::setTemplateCode(const std::string& templateCode)
setCoreParameter("TemplateCode", templateCode);
}
std::string SendSmsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SendSmsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string SendSmsRequest::getTemplateParam()const
{
return templateParam_;

View File

@@ -35,13 +35,9 @@ SendSmsResult::~SendSmsResult()
void SendSmsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BizId"].isNull())
bizId_ = value["BizId"].asString();