@@ -33,7 +33,7 @@ long BandOfferOrderRequest::getResourceOwnerId()const
|
||||
void BandOfferOrderRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BandOfferOrderRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string BandOfferOrderRequest::getResourceOwnerAccount()const
|
||||
void BandOfferOrderRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BandOfferOrderRequest::getBandId()const
|
||||
@@ -55,7 +55,7 @@ std::string BandOfferOrderRequest::getBandId()const
|
||||
void BandOfferOrderRequest::setBandId(const std::string& bandId)
|
||||
{
|
||||
bandId_ = bandId;
|
||||
setParameter("BandId", bandId);
|
||||
setCoreParameter("BandId", bandId);
|
||||
}
|
||||
|
||||
std::string BandOfferOrderRequest::getOfferId()const
|
||||
@@ -66,7 +66,7 @@ std::string BandOfferOrderRequest::getOfferId()const
|
||||
void BandOfferOrderRequest::setOfferId(const std::string& offerId)
|
||||
{
|
||||
offerId_ = offerId;
|
||||
setParameter("OfferId", offerId);
|
||||
setCoreParameter("OfferId", offerId);
|
||||
}
|
||||
|
||||
long BandOfferOrderRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long BandOfferOrderRequest::getOwnerId()const
|
||||
void BandOfferOrderRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BandOfferOrderRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string BandOfferOrderRequest::getAccessKeyId()const
|
||||
void BandOfferOrderRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BandOfferOrderResult::~BandOfferOrderResult()
|
||||
|
||||
void BandOfferOrderResult::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 resultModuleNode = value["ResultModule"];
|
||||
if(!resultModuleNode["LxOrderId"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string BandPrecheckRequest::getIpAddress()const
|
||||
void BandPrecheckRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
setCoreParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long BandPrecheckRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long BandPrecheckRequest::getResourceOwnerId()const
|
||||
void BandPrecheckRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BandPrecheckRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string BandPrecheckRequest::getResourceOwnerAccount()const
|
||||
void BandPrecheckRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int BandPrecheckRequest::getPort()const
|
||||
@@ -66,7 +66,7 @@ int BandPrecheckRequest::getPort()const
|
||||
void BandPrecheckRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
setCoreParameter("Port", std::to_string(port));
|
||||
}
|
||||
|
||||
long BandPrecheckRequest::getOwnerId()const
|
||||
@@ -77,7 +77,7 @@ long BandPrecheckRequest::getOwnerId()const
|
||||
void BandPrecheckRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BandPrecheckRequest::getAccessKeyId()const
|
||||
@@ -88,6 +88,6 @@ std::string BandPrecheckRequest::getAccessKeyId()const
|
||||
void BandPrecheckRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BandPrecheckResult::~BandPrecheckResult()
|
||||
|
||||
void BandPrecheckResult::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 resultModuleNode = value["ResultModule"];
|
||||
if(!resultModuleNode["BandId"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string BandStartSpeedUpRequest::getIpAddress()const
|
||||
void BandStartSpeedUpRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
setCoreParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long BandStartSpeedUpRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long BandStartSpeedUpRequest::getResourceOwnerId()const
|
||||
void BandStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BandStartSpeedUpRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string BandStartSpeedUpRequest::getResourceOwnerAccount()const
|
||||
void BandStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int BandStartSpeedUpRequest::getPort()const
|
||||
@@ -66,7 +66,7 @@ int BandStartSpeedUpRequest::getPort()const
|
||||
void BandStartSpeedUpRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
setCoreParameter("Port", std::to_string(port));
|
||||
}
|
||||
|
||||
long BandStartSpeedUpRequest::getBandId()const
|
||||
@@ -77,7 +77,7 @@ long BandStartSpeedUpRequest::getBandId()const
|
||||
void BandStartSpeedUpRequest::setBandId(long bandId)
|
||||
{
|
||||
bandId_ = bandId;
|
||||
setParameter("BandId", std::to_string(bandId));
|
||||
setCoreParameter("BandId", std::to_string(bandId));
|
||||
}
|
||||
|
||||
long BandStartSpeedUpRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long BandStartSpeedUpRequest::getOwnerId()const
|
||||
void BandStartSpeedUpRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long BandStartSpeedUpRequest::getTargetBandwidth()const
|
||||
@@ -99,7 +99,7 @@ long BandStartSpeedUpRequest::getTargetBandwidth()const
|
||||
void BandStartSpeedUpRequest::setTargetBandwidth(long targetBandwidth)
|
||||
{
|
||||
targetBandwidth_ = targetBandwidth;
|
||||
setParameter("TargetBandwidth", std::to_string(targetBandwidth));
|
||||
setCoreParameter("TargetBandwidth", std::to_string(targetBandwidth));
|
||||
}
|
||||
|
||||
std::string BandStartSpeedUpRequest::getBandScene()const
|
||||
@@ -110,7 +110,7 @@ std::string BandStartSpeedUpRequest::getBandScene()const
|
||||
void BandStartSpeedUpRequest::setBandScene(const std::string& bandScene)
|
||||
{
|
||||
bandScene_ = bandScene;
|
||||
setParameter("BandScene", bandScene);
|
||||
setCoreParameter("BandScene", bandScene);
|
||||
}
|
||||
|
||||
std::string BandStartSpeedUpRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string BandStartSpeedUpRequest::getAccessKeyId()const
|
||||
void BandStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BandStartSpeedUpRequest::getDirection()const
|
||||
@@ -132,6 +132,6 @@ std::string BandStartSpeedUpRequest::getDirection()const
|
||||
void BandStartSpeedUpRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
setCoreParameter("Direction", direction);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BandStartSpeedUpResult::~BandStartSpeedUpResult()
|
||||
|
||||
void BandStartSpeedUpResult::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["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long BandStatusQueryRequest::getResourceOwnerId()const
|
||||
void BandStatusQueryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BandStatusQueryRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string BandStatusQueryRequest::getResourceOwnerAccount()const
|
||||
void BandStatusQueryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long BandStatusQueryRequest::getBandId()const
|
||||
@@ -55,7 +55,7 @@ long BandStatusQueryRequest::getBandId()const
|
||||
void BandStatusQueryRequest::setBandId(long bandId)
|
||||
{
|
||||
bandId_ = bandId;
|
||||
setParameter("BandId", std::to_string(bandId));
|
||||
setCoreParameter("BandId", std::to_string(bandId));
|
||||
}
|
||||
|
||||
long BandStatusQueryRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long BandStatusQueryRequest::getOwnerId()const
|
||||
void BandStatusQueryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BandStatusQueryRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string BandStatusQueryRequest::getAccessKeyId()const
|
||||
void BandStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BandStatusQueryResult::~BandStatusQueryResult()
|
||||
|
||||
void BandStatusQueryResult::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 resultModuleNode = value["ResultModule"];
|
||||
if(!resultModuleNode["DownloadTarget"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string BandStopSpeedUpRequest::getIpAddress()const
|
||||
void BandStopSpeedUpRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
setCoreParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long BandStopSpeedUpRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long BandStopSpeedUpRequest::getResourceOwnerId()const
|
||||
void BandStopSpeedUpRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BandStopSpeedUpRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string BandStopSpeedUpRequest::getResourceOwnerAccount()const
|
||||
void BandStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int BandStopSpeedUpRequest::getPort()const
|
||||
@@ -66,7 +66,7 @@ int BandStopSpeedUpRequest::getPort()const
|
||||
void BandStopSpeedUpRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
setCoreParameter("Port", std::to_string(port));
|
||||
}
|
||||
|
||||
long BandStopSpeedUpRequest::getBandId()const
|
||||
@@ -77,7 +77,7 @@ long BandStopSpeedUpRequest::getBandId()const
|
||||
void BandStopSpeedUpRequest::setBandId(long bandId)
|
||||
{
|
||||
bandId_ = bandId;
|
||||
setParameter("BandId", std::to_string(bandId));
|
||||
setCoreParameter("BandId", std::to_string(bandId));
|
||||
}
|
||||
|
||||
long BandStopSpeedUpRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long BandStopSpeedUpRequest::getOwnerId()const
|
||||
void BandStopSpeedUpRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BandStopSpeedUpRequest::getAccessKeyId()const
|
||||
@@ -99,7 +99,7 @@ std::string BandStopSpeedUpRequest::getAccessKeyId()const
|
||||
void BandStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BandStopSpeedUpRequest::getDirection()const
|
||||
@@ -110,6 +110,6 @@ std::string BandStopSpeedUpRequest::getDirection()const
|
||||
void BandStopSpeedUpRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
setCoreParameter("Direction", direction);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BandStopSpeedUpResult::~BandStopSpeedUpResult()
|
||||
|
||||
void BandStopSpeedUpResult::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["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string MobileStartSpeedUpRequest::getDuration()const
|
||||
void MobileStartSpeedUpRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
setCoreParameter("Duration", duration);
|
||||
}
|
||||
|
||||
long MobileStartSpeedUpRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long MobileStartSpeedUpRequest::getResourceOwnerId()const
|
||||
void MobileStartSpeedUpRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string MobileStartSpeedUpRequest::getResourceOwnerAccount()const
|
||||
@@ -55,7 +55,7 @@ std::string MobileStartSpeedUpRequest::getResourceOwnerAccount()const
|
||||
void MobileStartSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string MobileStartSpeedUpRequest::getIp()const
|
||||
@@ -66,7 +66,7 @@ std::string MobileStartSpeedUpRequest::getIp()const
|
||||
void MobileStartSpeedUpRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setParameter("Ip", ip);
|
||||
setCoreParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string MobileStartSpeedUpRequest::getDestinationIpAddress()const
|
||||
@@ -77,7 +77,7 @@ std::string MobileStartSpeedUpRequest::getDestinationIpAddress()const
|
||||
void MobileStartSpeedUpRequest::setDestinationIpAddress(const std::string& destinationIpAddress)
|
||||
{
|
||||
destinationIpAddress_ = destinationIpAddress;
|
||||
setParameter("DestinationIpAddress", destinationIpAddress);
|
||||
setCoreParameter("DestinationIpAddress", destinationIpAddress);
|
||||
}
|
||||
|
||||
std::string MobileStartSpeedUpRequest::getPublicIp()const
|
||||
@@ -88,7 +88,7 @@ std::string MobileStartSpeedUpRequest::getPublicIp()const
|
||||
void MobileStartSpeedUpRequest::setPublicIp(const std::string& publicIp)
|
||||
{
|
||||
publicIp_ = publicIp;
|
||||
setParameter("PublicIp", publicIp);
|
||||
setCoreParameter("PublicIp", publicIp);
|
||||
}
|
||||
|
||||
std::string MobileStartSpeedUpRequest::getPublicPort()const
|
||||
@@ -99,7 +99,7 @@ std::string MobileStartSpeedUpRequest::getPublicPort()const
|
||||
void MobileStartSpeedUpRequest::setPublicPort(const std::string& publicPort)
|
||||
{
|
||||
publicPort_ = publicPort;
|
||||
setParameter("PublicPort", publicPort);
|
||||
setCoreParameter("PublicPort", publicPort);
|
||||
}
|
||||
|
||||
long MobileStartSpeedUpRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long MobileStartSpeedUpRequest::getOwnerId()const
|
||||
void MobileStartSpeedUpRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string MobileStartSpeedUpRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string MobileStartSpeedUpRequest::getAccessKeyId()const
|
||||
void MobileStartSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string MobileStartSpeedUpRequest::getToken()const
|
||||
@@ -132,6 +132,6 @@ std::string MobileStartSpeedUpRequest::getToken()const
|
||||
void MobileStartSpeedUpRequest::setToken(const std::string& token)
|
||||
{
|
||||
token_ = token;
|
||||
setParameter("Token", token);
|
||||
setCoreParameter("Token", token);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ MobileStartSpeedUpResult::~MobileStartSpeedUpResult()
|
||||
|
||||
void MobileStartSpeedUpResult::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["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long MobileStatusQueryRequest::getResourceOwnerId()const
|
||||
void MobileStatusQueryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string MobileStatusQueryRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string MobileStatusQueryRequest::getResourceOwnerAccount()const
|
||||
void MobileStatusQueryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string MobileStatusQueryRequest::getCorrelationId()const
|
||||
@@ -55,7 +55,7 @@ std::string MobileStatusQueryRequest::getCorrelationId()const
|
||||
void MobileStatusQueryRequest::setCorrelationId(const std::string& correlationId)
|
||||
{
|
||||
correlationId_ = correlationId;
|
||||
setParameter("CorrelationId", correlationId);
|
||||
setCoreParameter("CorrelationId", correlationId);
|
||||
}
|
||||
|
||||
long MobileStatusQueryRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long MobileStatusQueryRequest::getOwnerId()const
|
||||
void MobileStatusQueryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string MobileStatusQueryRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string MobileStatusQueryRequest::getAccessKeyId()const
|
||||
void MobileStatusQueryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ MobileStatusQueryResult::~MobileStatusQueryResult()
|
||||
|
||||
void MobileStatusQueryResult::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["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ long MobileStopSpeedUpRequest::getResourceOwnerId()const
|
||||
void MobileStopSpeedUpRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string MobileStopSpeedUpRequest::getResourceOwnerAccount()const
|
||||
@@ -44,7 +44,7 @@ std::string MobileStopSpeedUpRequest::getResourceOwnerAccount()const
|
||||
void MobileStopSpeedUpRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string MobileStopSpeedUpRequest::getCorrelationId()const
|
||||
@@ -55,7 +55,7 @@ std::string MobileStopSpeedUpRequest::getCorrelationId()const
|
||||
void MobileStopSpeedUpRequest::setCorrelationId(const std::string& correlationId)
|
||||
{
|
||||
correlationId_ = correlationId;
|
||||
setParameter("CorrelationId", correlationId);
|
||||
setCoreParameter("CorrelationId", correlationId);
|
||||
}
|
||||
|
||||
long MobileStopSpeedUpRequest::getOwnerId()const
|
||||
@@ -66,7 +66,7 @@ long MobileStopSpeedUpRequest::getOwnerId()const
|
||||
void MobileStopSpeedUpRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string MobileStopSpeedUpRequest::getAccessKeyId()const
|
||||
@@ -77,6 +77,6 @@ std::string MobileStopSpeedUpRequest::getAccessKeyId()const
|
||||
void MobileStopSpeedUpRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ MobileStopSpeedUpResult::~MobileStopSpeedUpResult()
|
||||
|
||||
void MobileStopSpeedUpResult::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["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
|
||||
Reference in New Issue
Block a user