@@ -25,37 +25,15 @@ CreateChannelRequest::CreateChannelRequest() :
|
||||
CreateChannelRequest::~CreateChannelRequest()
|
||||
{}
|
||||
|
||||
std::string CreateChannelRequest::getApp_ip()const
|
||||
long CreateChannelRequest::getResourceOwnerId()const
|
||||
{
|
||||
return app_ip_;
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setApp_ip(const std::string& app_ip)
|
||||
void CreateChannelRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateChannelRequest::getCallerParentId()const
|
||||
@@ -66,7 +44,7 @@ long CreateChannelRequest::getCallerParentId()const
|
||||
void CreateChannelRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateChannelRequest::getProxy_original_security_transport()const
|
||||
@@ -77,29 +55,7 @@ bool CreateChannelRequest::getProxy_original_security_transport()const
|
||||
void CreateChannelRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getProxy_original_source_ip()const
|
||||
@@ -110,18 +66,7 @@ std::string CreateChannelRequest::getProxy_original_source_ip()const
|
||||
void CreateChannelRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getOwnerIdLoginEmail()const
|
||||
@@ -132,7 +77,7 @@ std::string CreateChannelRequest::getOwnerIdLoginEmail()const
|
||||
void CreateChannelRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getCallerType()const
|
||||
@@ -143,29 +88,7 @@ std::string CreateChannelRequest::getCallerType()const
|
||||
void CreateChannelRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool CreateChannelRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool CreateChannelRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getAccessKeyId()const
|
||||
@@ -176,18 +99,7 @@ std::string CreateChannelRequest::getAccessKeyId()const
|
||||
void CreateChannelRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateChannelRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getSecurityToken()const
|
||||
@@ -198,18 +110,7 @@ std::string CreateChannelRequest::getSecurityToken()const
|
||||
void CreateChannelRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getRequestContent()const
|
||||
@@ -220,18 +121,7 @@ std::string CreateChannelRequest::getRequestContent()const
|
||||
void CreateChannelRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +132,7 @@ std::string CreateChannelRequest::getCallerBidEmail()const
|
||||
void CreateChannelRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getCallerUidEmail()const
|
||||
@@ -253,18 +143,7 @@ std::string CreateChannelRequest::getCallerUidEmail()const
|
||||
void CreateChannelRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateChannelRequest::getCallerUid()const
|
||||
@@ -275,6 +154,138 @@ long CreateChannelRequest::getCallerUid()const
|
||||
void CreateChannelRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateChannelRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateChannelRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateChannelRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateChannelRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void CreateChannelRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateChannelResult::~CreateChannelResult()
|
||||
|
||||
void CreateChannelResult::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["ChannelKey"].isNull())
|
||||
channelKey_ = value["ChannelKey"].asString();
|
||||
|
||||
@@ -25,6 +25,17 @@ CreateChannelTokenRequest::CreateChannelTokenRequest() :
|
||||
CreateChannelTokenRequest::~CreateChannelTokenRequest()
|
||||
{}
|
||||
|
||||
long CreateChannelTokenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateChannelTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateChannelTokenRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
@@ -33,7 +44,7 @@ long CreateChannelTokenRequest::getCallerParentId()const
|
||||
void CreateChannelTokenRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateChannelTokenRequest::getProxy_original_security_transport()const
|
||||
@@ -44,7 +55,7 @@ bool CreateChannelTokenRequest::getProxy_original_security_transport()const
|
||||
void CreateChannelTokenRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getSessionId()const
|
||||
@@ -55,7 +66,7 @@ std::string CreateChannelTokenRequest::getSessionId()const
|
||||
void CreateChannelTokenRequest::setSessionId(const std::string& sessionId)
|
||||
{
|
||||
sessionId_ = sessionId;
|
||||
setParameter("SessionId", sessionId);
|
||||
setCoreParameter("SessionId", sessionId);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getProxy_original_source_ip()const
|
||||
@@ -66,7 +77,7 @@ std::string CreateChannelTokenRequest::getProxy_original_source_ip()const
|
||||
void CreateChannelTokenRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getOwnerIdLoginEmail()const
|
||||
@@ -77,7 +88,7 @@ std::string CreateChannelTokenRequest::getOwnerIdLoginEmail()const
|
||||
void CreateChannelTokenRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getCallerType()const
|
||||
@@ -88,7 +99,7 @@ std::string CreateChannelTokenRequest::getCallerType()const
|
||||
void CreateChannelTokenRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getAccessKeyId()const
|
||||
@@ -99,7 +110,7 @@ std::string CreateChannelTokenRequest::getAccessKeyId()const
|
||||
void CreateChannelTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getUId()const
|
||||
@@ -110,7 +121,7 @@ std::string CreateChannelTokenRequest::getUId()const
|
||||
void CreateChannelTokenRequest::setUId(const std::string& uId)
|
||||
{
|
||||
uId_ = uId;
|
||||
setParameter("UId", uId);
|
||||
setCoreParameter("UId", uId);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getSecurityToken()const
|
||||
@@ -121,7 +132,7 @@ std::string CreateChannelTokenRequest::getSecurityToken()const
|
||||
void CreateChannelTokenRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getRequestContent()const
|
||||
@@ -132,7 +143,7 @@ std::string CreateChannelTokenRequest::getRequestContent()const
|
||||
void CreateChannelTokenRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getCallerBidEmail()const
|
||||
@@ -143,7 +154,7 @@ std::string CreateChannelTokenRequest::getCallerBidEmail()const
|
||||
void CreateChannelTokenRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getCallerUidEmail()const
|
||||
@@ -154,7 +165,7 @@ std::string CreateChannelTokenRequest::getCallerUidEmail()const
|
||||
void CreateChannelTokenRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateChannelTokenRequest::getCallerUid()const
|
||||
@@ -165,7 +176,7 @@ long CreateChannelTokenRequest::getCallerUid()const
|
||||
void CreateChannelTokenRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getApp_ip()const
|
||||
@@ -176,7 +187,7 @@ std::string CreateChannelTokenRequest::getApp_ip()const
|
||||
void CreateChannelTokenRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getPopProduct()const
|
||||
@@ -187,18 +198,7 @@ std::string CreateChannelTokenRequest::getPopProduct()const
|
||||
void CreateChannelTokenRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void CreateChannelTokenRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getCallerBid()const
|
||||
@@ -209,7 +209,7 @@ std::string CreateChannelTokenRequest::getCallerBid()const
|
||||
void CreateChannelTokenRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateChannelTokenRequest::getOwnerId()const
|
||||
@@ -220,7 +220,7 @@ long CreateChannelTokenRequest::getOwnerId()const
|
||||
void CreateChannelTokenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getVersion()const
|
||||
@@ -231,7 +231,7 @@ std::string CreateChannelTokenRequest::getVersion()const
|
||||
void CreateChannelTokenRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getNonce()const
|
||||
@@ -242,7 +242,7 @@ std::string CreateChannelTokenRequest::getNonce()const
|
||||
void CreateChannelTokenRequest::setNonce(const std::string& nonce)
|
||||
{
|
||||
nonce_ = nonce;
|
||||
setParameter("Nonce", nonce);
|
||||
setCoreParameter("Nonce", nonce);
|
||||
}
|
||||
|
||||
bool CreateChannelTokenRequest::getProxy_trust_transport_info()const
|
||||
@@ -253,7 +253,7 @@ bool CreateChannelTokenRequest::getProxy_trust_transport_info()const
|
||||
void CreateChannelTokenRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateChannelTokenRequest::getAk_mfa_present()const
|
||||
@@ -264,7 +264,7 @@ bool CreateChannelTokenRequest::getAk_mfa_present()const
|
||||
void CreateChannelTokenRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateChannelTokenRequest::getSecurity_transport()const
|
||||
@@ -275,7 +275,18 @@ bool CreateChannelTokenRequest::getSecurity_transport()const
|
||||
void CreateChannelTokenRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void CreateChannelTokenRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getRequestId()const
|
||||
@@ -286,7 +297,7 @@ std::string CreateChannelTokenRequest::getRequestId()const
|
||||
void CreateChannelTokenRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getAppId()const
|
||||
@@ -297,7 +308,7 @@ std::string CreateChannelTokenRequest::getAppId()const
|
||||
void CreateChannelTokenRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateChannelTokenRequest::getChannelId()const
|
||||
@@ -308,6 +319,6 @@ std::string CreateChannelTokenRequest::getChannelId()const
|
||||
void CreateChannelTokenRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateChannelTokenResult::~CreateChannelTokenResult()
|
||||
|
||||
void CreateChannelTokenResult::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["ChannelToken"].isNull())
|
||||
channelToken_ = value["ChannelToken"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string CreateConferenceRequest::getClientToken()const
|
||||
void CreateConferenceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
long CreateConferenceRequest::getCallerParentId()const
|
||||
@@ -44,7 +44,7 @@ long CreateConferenceRequest::getCallerParentId()const
|
||||
void CreateConferenceRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateConferenceRequest::getProxy_original_security_transport()const
|
||||
@@ -55,7 +55,7 @@ bool CreateConferenceRequest::getProxy_original_security_transport()const
|
||||
void CreateConferenceRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getStartTime()const
|
||||
@@ -66,7 +66,7 @@ std::string CreateConferenceRequest::getStartTime()const
|
||||
void CreateConferenceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string CreateConferenceRequest::getProxy_original_source_ip()const
|
||||
void CreateConferenceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getType()const
|
||||
@@ -88,7 +88,7 @@ std::string CreateConferenceRequest::getType()const
|
||||
void CreateConferenceRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getOwnerIdLoginEmail()const
|
||||
@@ -99,7 +99,7 @@ std::string CreateConferenceRequest::getOwnerIdLoginEmail()const
|
||||
void CreateConferenceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getCallerType()const
|
||||
@@ -110,7 +110,7 @@ std::string CreateConferenceRequest::getCallerType()const
|
||||
void CreateConferenceRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string CreateConferenceRequest::getAccessKeyId()const
|
||||
void CreateConferenceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getSecurityToken()const
|
||||
@@ -132,7 +132,7 @@ std::string CreateConferenceRequest::getSecurityToken()const
|
||||
void CreateConferenceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getConferenceName()const
|
||||
@@ -143,7 +143,7 @@ std::string CreateConferenceRequest::getConferenceName()const
|
||||
void CreateConferenceRequest::setConferenceName(const std::string& conferenceName)
|
||||
{
|
||||
conferenceName_ = conferenceName;
|
||||
setParameter("ConferenceName", conferenceName);
|
||||
setCoreParameter("ConferenceName", conferenceName);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getRequestContent()const
|
||||
@@ -154,7 +154,7 @@ std::string CreateConferenceRequest::getRequestContent()const
|
||||
void CreateConferenceRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getCallerBidEmail()const
|
||||
@@ -165,7 +165,7 @@ std::string CreateConferenceRequest::getCallerBidEmail()const
|
||||
void CreateConferenceRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getCallerUidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string CreateConferenceRequest::getCallerUidEmail()const
|
||||
void CreateConferenceRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateConferenceRequest::getCallerUid()const
|
||||
@@ -187,7 +187,7 @@ long CreateConferenceRequest::getCallerUid()const
|
||||
void CreateConferenceRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getApp_ip()const
|
||||
@@ -198,7 +198,7 @@ std::string CreateConferenceRequest::getApp_ip()const
|
||||
void CreateConferenceRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getPopProduct()const
|
||||
@@ -209,7 +209,7 @@ std::string CreateConferenceRequest::getPopProduct()const
|
||||
void CreateConferenceRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getCallerBid()const
|
||||
@@ -220,7 +220,7 @@ std::string CreateConferenceRequest::getCallerBid()const
|
||||
void CreateConferenceRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateConferenceRequest::getOwnerId()const
|
||||
@@ -231,7 +231,7 @@ long CreateConferenceRequest::getOwnerId()const
|
||||
void CreateConferenceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getVersion()const
|
||||
@@ -242,7 +242,7 @@ std::string CreateConferenceRequest::getVersion()const
|
||||
void CreateConferenceRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateConferenceRequest::getProxy_trust_transport_info()const
|
||||
@@ -253,7 +253,7 @@ bool CreateConferenceRequest::getProxy_trust_transport_info()const
|
||||
void CreateConferenceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateConferenceRequest::getAk_mfa_present()const
|
||||
@@ -264,7 +264,7 @@ bool CreateConferenceRequest::getAk_mfa_present()const
|
||||
void CreateConferenceRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateConferenceRequest::getSecurity_transport()const
|
||||
@@ -275,7 +275,7 @@ bool CreateConferenceRequest::getSecurity_transport()const
|
||||
void CreateConferenceRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getRequestId()const
|
||||
@@ -286,7 +286,7 @@ std::string CreateConferenceRequest::getRequestId()const
|
||||
void CreateConferenceRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateConferenceRequest::getAppId()const
|
||||
@@ -297,7 +297,7 @@ std::string CreateConferenceRequest::getAppId()const
|
||||
void CreateConferenceRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int CreateConferenceRequest::getRemindNotice()const
|
||||
@@ -308,6 +308,6 @@ int CreateConferenceRequest::getRemindNotice()const
|
||||
void CreateConferenceRequest::setRemindNotice(int remindNotice)
|
||||
{
|
||||
remindNotice_ = remindNotice;
|
||||
setParameter("RemindNotice", std::to_string(remindNotice));
|
||||
setCoreParameter("RemindNotice", std::to_string(remindNotice));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateConferenceResult::~CreateConferenceResult()
|
||||
|
||||
void CreateConferenceResult::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 authInfoNode = value["AuthInfo"];
|
||||
if(!authInfoNode["Key"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ int CreateTemplateRequest::getServiceMode()const
|
||||
void CreateTemplateRequest::setServiceMode(int serviceMode)
|
||||
{
|
||||
serviceMode_ = serviceMode;
|
||||
setParameter("ServiceMode", std::to_string(serviceMode));
|
||||
setCoreParameter("ServiceMode", std::to_string(serviceMode));
|
||||
}
|
||||
|
||||
std::vector<CreateTemplateRequest::LiveConfig> CreateTemplateRequest::getLiveConfig()const
|
||||
@@ -48,8 +48,8 @@ void CreateTemplateRequest::setLiveConfig(const std::vector<LiveConfig>& liveCon
|
||||
for(int i = 0; i!= liveConfig.size(); i++) {
|
||||
auto obj = liveConfig.at(i);
|
||||
std::string str ="LiveConfig."+ std::to_string(i);
|
||||
setParameter(str + ".DomainName", obj.domainName);
|
||||
setParameter(str + ".AppName", obj.appName);
|
||||
setCoreParameter(str + ".DomainName", obj.domainName);
|
||||
setCoreParameter(str + ".AppName", obj.appName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ long CreateTemplateRequest::getCallerParentId()const
|
||||
void CreateTemplateRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateTemplateRequest::getProxy_original_security_transport()const
|
||||
@@ -72,7 +72,7 @@ bool CreateTemplateRequest::getProxy_original_security_transport()const
|
||||
void CreateTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateTemplateRequest::getMediaConfig()const
|
||||
@@ -83,7 +83,7 @@ int CreateTemplateRequest::getMediaConfig()const
|
||||
void CreateTemplateRequest::setMediaConfig(int mediaConfig)
|
||||
{
|
||||
mediaConfig_ = mediaConfig;
|
||||
setParameter("MediaConfig", std::to_string(mediaConfig));
|
||||
setCoreParameter("MediaConfig", std::to_string(mediaConfig));
|
||||
}
|
||||
|
||||
int CreateTemplateRequest::getMaxMixStreamCount()const
|
||||
@@ -94,7 +94,7 @@ int CreateTemplateRequest::getMaxMixStreamCount()const
|
||||
void CreateTemplateRequest::setMaxMixStreamCount(int maxMixStreamCount)
|
||||
{
|
||||
maxMixStreamCount_ = maxMixStreamCount;
|
||||
setParameter("MaxMixStreamCount", std::to_string(maxMixStreamCount));
|
||||
setCoreParameter("MaxMixStreamCount", std::to_string(maxMixStreamCount));
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getProxy_original_source_ip()const
|
||||
@@ -105,7 +105,7 @@ std::string CreateTemplateRequest::getProxy_original_source_ip()const
|
||||
void CreateTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getOwnerIdLoginEmail()const
|
||||
@@ -116,7 +116,7 @@ std::string CreateTemplateRequest::getOwnerIdLoginEmail()const
|
||||
void CreateTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getCallerType()const
|
||||
@@ -127,7 +127,7 @@ std::string CreateTemplateRequest::getCallerType()const
|
||||
void CreateTemplateRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::vector<CreateTemplateRequest::RecordConfig> CreateTemplateRequest::getRecordConfig()const
|
||||
@@ -142,11 +142,11 @@ void CreateTemplateRequest::setRecordConfig(const std::vector<RecordConfig>& rec
|
||||
for(int i = 0; i!= recordConfig.size(); i++) {
|
||||
auto obj = recordConfig.at(i);
|
||||
std::string str ="RecordConfig."+ std::to_string(i);
|
||||
setParameter(str + ".StorageType", obj.storageType);
|
||||
setParameter(str + ".FileFormat", std::to_string(obj.fileFormat));
|
||||
setParameter(str + ".OssEndPoint", obj.ossEndPoint);
|
||||
setParameter(str + ".OssBucket", obj.ossBucket);
|
||||
setParameter(str + ".VodTransCodeGroupId", std::to_string(obj.vodTransCodeGroupId));
|
||||
setCoreParameter(str + ".StorageType", obj.storageType);
|
||||
setCoreParameter(str + ".FileFormat", std::to_string(obj.fileFormat));
|
||||
setCoreParameter(str + ".OssEndPoint", obj.ossEndPoint);
|
||||
setCoreParameter(str + ".OssBucket", obj.ossBucket);
|
||||
setCoreParameter(str + ".VodTransCodeGroupId", std::to_string(obj.vodTransCodeGroupId));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ std::string CreateTemplateRequest::getAccessKeyId()const
|
||||
void CreateTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getSecurityToken()const
|
||||
@@ -169,7 +169,7 @@ std::string CreateTemplateRequest::getSecurityToken()const
|
||||
void CreateTemplateRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getRequestContent()const
|
||||
@@ -180,7 +180,7 @@ std::string CreateTemplateRequest::getRequestContent()const
|
||||
void CreateTemplateRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getCallerBidEmail()const
|
||||
@@ -191,7 +191,7 @@ std::string CreateTemplateRequest::getCallerBidEmail()const
|
||||
void CreateTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getCallerUidEmail()const
|
||||
@@ -202,7 +202,7 @@ std::string CreateTemplateRequest::getCallerUidEmail()const
|
||||
void CreateTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateTemplateRequest::getCallerUid()const
|
||||
@@ -213,7 +213,7 @@ long CreateTemplateRequest::getCallerUid()const
|
||||
void CreateTemplateRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getApp_ip()const
|
||||
@@ -224,7 +224,7 @@ std::string CreateTemplateRequest::getApp_ip()const
|
||||
void CreateTemplateRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getPopProduct()const
|
||||
@@ -235,7 +235,7 @@ std::string CreateTemplateRequest::getPopProduct()const
|
||||
void CreateTemplateRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getCallerBid()const
|
||||
@@ -246,7 +246,7 @@ std::string CreateTemplateRequest::getCallerBid()const
|
||||
void CreateTemplateRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateTemplateRequest::getOwnerId()const
|
||||
@@ -257,7 +257,7 @@ long CreateTemplateRequest::getOwnerId()const
|
||||
void CreateTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getVersion()const
|
||||
@@ -268,7 +268,7 @@ std::string CreateTemplateRequest::getVersion()const
|
||||
void CreateTemplateRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateTemplateRequest::getProxy_trust_transport_info()const
|
||||
@@ -279,7 +279,7 @@ bool CreateTemplateRequest::getProxy_trust_transport_info()const
|
||||
void CreateTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTemplateRequest::getAk_mfa_present()const
|
||||
@@ -290,7 +290,7 @@ bool CreateTemplateRequest::getAk_mfa_present()const
|
||||
void CreateTemplateRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTemplateRequest::getSecurity_transport()const
|
||||
@@ -301,7 +301,7 @@ bool CreateTemplateRequest::getSecurity_transport()const
|
||||
void CreateTemplateRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateTemplateRequest::LayOut> CreateTemplateRequest::getLayOut()const
|
||||
@@ -316,9 +316,9 @@ void CreateTemplateRequest::setLayOut(const std::vector<LayOut>& layOut)
|
||||
for(int i = 0; i!= layOut.size(); i++) {
|
||||
auto obj = layOut.at(i);
|
||||
std::string str ="LayOut."+ std::to_string(i);
|
||||
setParameter(str + ".Color", obj.color);
|
||||
setParameter(str + ".CutMode", std::to_string(obj.cutMode));
|
||||
setParameter(str + ".LayOutId", std::to_string(obj.layOutId));
|
||||
setCoreParameter(str + ".Color", obj.color);
|
||||
setCoreParameter(str + ".CutMode", std::to_string(obj.cutMode));
|
||||
setCoreParameter(str + ".LayOutId", std::to_string(obj.layOutId));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ std::string CreateTemplateRequest::getRequestId()const
|
||||
void CreateTemplateRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getAppId()const
|
||||
@@ -341,7 +341,7 @@ std::string CreateTemplateRequest::getAppId()const
|
||||
void CreateTemplateRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getCallBack()const
|
||||
@@ -352,7 +352,7 @@ std::string CreateTemplateRequest::getCallBack()const
|
||||
void CreateTemplateRequest::setCallBack(const std::string& callBack)
|
||||
{
|
||||
callBack_ = callBack;
|
||||
setParameter("CallBack", callBack);
|
||||
setCoreParameter("CallBack", callBack);
|
||||
}
|
||||
|
||||
int CreateTemplateRequest::getMixMode()const
|
||||
@@ -363,6 +363,6 @@ int CreateTemplateRequest::getMixMode()const
|
||||
void CreateTemplateRequest::setMixMode(int mixMode)
|
||||
{
|
||||
mixMode_ = mixMode;
|
||||
setParameter("MixMode", std::to_string(mixMode));
|
||||
setCoreParameter("MixMode", std::to_string(mixMode));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ CreateTemplateResult::~CreateTemplateResult()
|
||||
|
||||
void CreateTemplateResult::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["TemplateId"].isNull())
|
||||
templateId_ = std::stol(value["TemplateId"].asString());
|
||||
|
||||
@@ -25,37 +25,15 @@ DeleteChannelRequest::DeleteChannelRequest() :
|
||||
DeleteChannelRequest::~DeleteChannelRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteChannelRequest::getApp_ip()const
|
||||
long DeleteChannelRequest::getResourceOwnerId()const
|
||||
{
|
||||
return app_ip_;
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setApp_ip(const std::string& app_ip)
|
||||
void DeleteChannelRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteChannelRequest::getCallerParentId()const
|
||||
@@ -66,7 +44,7 @@ long DeleteChannelRequest::getCallerParentId()const
|
||||
void DeleteChannelRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteChannelRequest::getProxy_original_security_transport()const
|
||||
@@ -77,29 +55,7 @@ bool DeleteChannelRequest::getProxy_original_security_transport()const
|
||||
void DeleteChannelRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getProxy_original_source_ip()const
|
||||
@@ -110,18 +66,7 @@ std::string DeleteChannelRequest::getProxy_original_source_ip()const
|
||||
void DeleteChannelRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getOwnerIdLoginEmail()const
|
||||
@@ -132,7 +77,7 @@ std::string DeleteChannelRequest::getOwnerIdLoginEmail()const
|
||||
void DeleteChannelRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getCallerType()const
|
||||
@@ -143,29 +88,7 @@ std::string DeleteChannelRequest::getCallerType()const
|
||||
void DeleteChannelRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DeleteChannelRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DeleteChannelRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getAccessKeyId()const
|
||||
@@ -176,18 +99,7 @@ std::string DeleteChannelRequest::getAccessKeyId()const
|
||||
void DeleteChannelRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DeleteChannelRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getSecurityToken()const
|
||||
@@ -198,18 +110,7 @@ std::string DeleteChannelRequest::getSecurityToken()const
|
||||
void DeleteChannelRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getRequestContent()const
|
||||
@@ -220,18 +121,7 @@ std::string DeleteChannelRequest::getRequestContent()const
|
||||
void DeleteChannelRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +132,7 @@ std::string DeleteChannelRequest::getCallerBidEmail()const
|
||||
void DeleteChannelRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getCallerUidEmail()const
|
||||
@@ -253,18 +143,7 @@ std::string DeleteChannelRequest::getCallerUidEmail()const
|
||||
void DeleteChannelRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteChannelRequest::getCallerUid()const
|
||||
@@ -275,6 +154,138 @@ long DeleteChannelRequest::getCallerUid()const
|
||||
void DeleteChannelRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteChannelRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeleteChannelRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteChannelRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteChannelRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteChannelResult::~DeleteChannelResult()
|
||||
|
||||
void DeleteChannelResult::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteConferenceRequest::getApp_ip()const
|
||||
void DeleteConferenceRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteConferenceRequest::getPopProduct()const
|
||||
void DeleteConferenceRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long DeleteConferenceRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long DeleteConferenceRequest::getCallerParentId()const
|
||||
void DeleteConferenceRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteConferenceRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool DeleteConferenceRequest::getProxy_original_security_transport()const
|
||||
void DeleteConferenceRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string DeleteConferenceRequest::getCallerBid()const
|
||||
void DeleteConferenceRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteConferenceRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DeleteConferenceRequest::getOwnerId()const
|
||||
void DeleteConferenceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string DeleteConferenceRequest::getProxy_original_source_ip()const
|
||||
void DeleteConferenceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string DeleteConferenceRequest::getVersion()const
|
||||
void DeleteConferenceRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string DeleteConferenceRequest::getOwnerIdLoginEmail()const
|
||||
void DeleteConferenceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string DeleteConferenceRequest::getCallerType()const
|
||||
void DeleteConferenceRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DeleteConferenceRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool DeleteConferenceRequest::getProxy_trust_transport_info()const
|
||||
void DeleteConferenceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteConferenceRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool DeleteConferenceRequest::getAk_mfa_present()const
|
||||
void DeleteConferenceRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string DeleteConferenceRequest::getAccessKeyId()const
|
||||
void DeleteConferenceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DeleteConferenceRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool DeleteConferenceRequest::getSecurity_transport()const
|
||||
void DeleteConferenceRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getSecurityToken()const
|
||||
@@ -187,7 +187,7 @@ std::string DeleteConferenceRequest::getSecurityToken()const
|
||||
void DeleteConferenceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getConferenceId()const
|
||||
@@ -198,7 +198,7 @@ std::string DeleteConferenceRequest::getConferenceId()const
|
||||
void DeleteConferenceRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string DeleteConferenceRequest::getRequestId()const
|
||||
void DeleteConferenceRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string DeleteConferenceRequest::getRequestContent()const
|
||||
void DeleteConferenceRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string DeleteConferenceRequest::getAppId()const
|
||||
void DeleteConferenceRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string DeleteConferenceRequest::getCallerBidEmail()const
|
||||
void DeleteConferenceRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteConferenceRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string DeleteConferenceRequest::getCallerUidEmail()const
|
||||
void DeleteConferenceRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteConferenceRequest::getCallerUid()const
|
||||
@@ -264,6 +264,6 @@ long DeleteConferenceRequest::getCallerUid()const
|
||||
void DeleteConferenceRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteConferenceResult::~DeleteConferenceResult()
|
||||
|
||||
void DeleteConferenceResult::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["ConferenceId"].isNull())
|
||||
conferenceId_ = value["ConferenceId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DeleteTemplateRequest::getApp_ip()const
|
||||
void DeleteTemplateRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string DeleteTemplateRequest::getPopProduct()const
|
||||
void DeleteTemplateRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long DeleteTemplateRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long DeleteTemplateRequest::getCallerParentId()const
|
||||
void DeleteTemplateRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteTemplateRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool DeleteTemplateRequest::getProxy_original_security_transport()const
|
||||
void DeleteTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string DeleteTemplateRequest::getCallerBid()const
|
||||
void DeleteTemplateRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteTemplateRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DeleteTemplateRequest::getOwnerId()const
|
||||
void DeleteTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string DeleteTemplateRequest::getProxy_original_source_ip()const
|
||||
void DeleteTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
long DeleteTemplateRequest::getTemplateId()const
|
||||
@@ -110,7 +110,7 @@ long DeleteTemplateRequest::getTemplateId()const
|
||||
void DeleteTemplateRequest::setTemplateId(long templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", std::to_string(templateId));
|
||||
setCoreParameter("TemplateId", std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getVersion()const
|
||||
@@ -121,7 +121,7 @@ std::string DeleteTemplateRequest::getVersion()const
|
||||
void DeleteTemplateRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getOwnerIdLoginEmail()const
|
||||
@@ -132,7 +132,7 @@ std::string DeleteTemplateRequest::getOwnerIdLoginEmail()const
|
||||
void DeleteTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getCallerType()const
|
||||
@@ -143,7 +143,7 @@ std::string DeleteTemplateRequest::getCallerType()const
|
||||
void DeleteTemplateRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DeleteTemplateRequest::getProxy_trust_transport_info()const
|
||||
@@ -154,7 +154,7 @@ bool DeleteTemplateRequest::getProxy_trust_transport_info()const
|
||||
void DeleteTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteTemplateRequest::getAk_mfa_present()const
|
||||
@@ -165,7 +165,7 @@ bool DeleteTemplateRequest::getAk_mfa_present()const
|
||||
void DeleteTemplateRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getAccessKeyId()const
|
||||
@@ -176,7 +176,7 @@ std::string DeleteTemplateRequest::getAccessKeyId()const
|
||||
void DeleteTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DeleteTemplateRequest::getSecurity_transport()const
|
||||
@@ -187,7 +187,7 @@ bool DeleteTemplateRequest::getSecurity_transport()const
|
||||
void DeleteTemplateRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string DeleteTemplateRequest::getSecurityToken()const
|
||||
void DeleteTemplateRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string DeleteTemplateRequest::getRequestId()const
|
||||
void DeleteTemplateRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string DeleteTemplateRequest::getRequestContent()const
|
||||
void DeleteTemplateRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string DeleteTemplateRequest::getAppId()const
|
||||
void DeleteTemplateRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string DeleteTemplateRequest::getCallerBidEmail()const
|
||||
void DeleteTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string DeleteTemplateRequest::getCallerUidEmail()const
|
||||
void DeleteTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteTemplateRequest::getCallerUid()const
|
||||
@@ -264,6 +264,6 @@ long DeleteTemplateRequest::getCallerUid()const
|
||||
void DeleteTemplateRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DeleteTemplateResult::~DeleteTemplateResult()
|
||||
|
||||
void DeleteTemplateResult::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeAppsRequest::getCallerParentId()const
|
||||
void DescribeAppsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeAppsRequest::getProxy_original_security_transport()const
|
||||
@@ -44,7 +44,7 @@ bool DescribeAppsRequest::getProxy_original_security_transport()const
|
||||
void DescribeAppsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getProxy_original_source_ip()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeAppsRequest::getProxy_original_source_ip()const
|
||||
void DescribeAppsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
int DescribeAppsRequest::getPageNum()const
|
||||
@@ -66,7 +66,7 @@ int DescribeAppsRequest::getPageNum()const
|
||||
void DescribeAppsRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getOwnerIdLoginEmail()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeAppsRequest::getOwnerIdLoginEmail()const
|
||||
void DescribeAppsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getCallerType()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeAppsRequest::getCallerType()const
|
||||
void DescribeAppsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getAccessKeyId()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeAppsRequest::getAccessKeyId()const
|
||||
void DescribeAppsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getSecurityToken()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeAppsRequest::getSecurityToken()const
|
||||
void DescribeAppsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getRequestContent()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeAppsRequest::getRequestContent()const
|
||||
void DescribeAppsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
int DescribeAppsRequest::getPageSize()const
|
||||
@@ -132,7 +132,7 @@ int DescribeAppsRequest::getPageSize()const
|
||||
void DescribeAppsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getCallerBidEmail()const
|
||||
@@ -143,7 +143,7 @@ std::string DescribeAppsRequest::getCallerBidEmail()const
|
||||
void DescribeAppsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getCallerUidEmail()const
|
||||
@@ -154,7 +154,7 @@ std::string DescribeAppsRequest::getCallerUidEmail()const
|
||||
void DescribeAppsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeAppsRequest::getCallerUid()const
|
||||
@@ -165,7 +165,7 @@ long DescribeAppsRequest::getCallerUid()const
|
||||
void DescribeAppsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getOrder()const
|
||||
@@ -176,7 +176,7 @@ std::string DescribeAppsRequest::getOrder()const
|
||||
void DescribeAppsRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
setCoreParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getApp_ip()const
|
||||
@@ -187,7 +187,7 @@ std::string DescribeAppsRequest::getApp_ip()const
|
||||
void DescribeAppsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getPopProduct()const
|
||||
@@ -198,7 +198,7 @@ std::string DescribeAppsRequest::getPopProduct()const
|
||||
void DescribeAppsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getCallerBid()const
|
||||
@@ -209,7 +209,7 @@ std::string DescribeAppsRequest::getCallerBid()const
|
||||
void DescribeAppsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeAppsRequest::getOwnerId()const
|
||||
@@ -220,7 +220,7 @@ long DescribeAppsRequest::getOwnerId()const
|
||||
void DescribeAppsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getVersion()const
|
||||
@@ -231,7 +231,7 @@ std::string DescribeAppsRequest::getVersion()const
|
||||
void DescribeAppsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeAppsRequest::getProxy_trust_transport_info()const
|
||||
@@ -242,7 +242,7 @@ bool DescribeAppsRequest::getProxy_trust_transport_info()const
|
||||
void DescribeAppsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeAppsRequest::getAk_mfa_present()const
|
||||
@@ -253,7 +253,7 @@ bool DescribeAppsRequest::getAk_mfa_present()const
|
||||
void DescribeAppsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeAppsRequest::getSecurity_transport()const
|
||||
@@ -264,7 +264,7 @@ bool DescribeAppsRequest::getSecurity_transport()const
|
||||
void DescribeAppsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getRequestId()const
|
||||
@@ -275,7 +275,7 @@ std::string DescribeAppsRequest::getRequestId()const
|
||||
void DescribeAppsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getAppId()const
|
||||
@@ -286,7 +286,7 @@ std::string DescribeAppsRequest::getAppId()const
|
||||
void DescribeAppsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getStatus()const
|
||||
@@ -297,6 +297,6 @@ std::string DescribeAppsRequest::getStatus()const
|
||||
void DescribeAppsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeAppsResult::~DescribeAppsResult()
|
||||
|
||||
void DescribeAppsResult::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 allAppList = value["AppList"]["App"];
|
||||
for (auto value : allAppList)
|
||||
|
||||
324
rtc/src/model/DescribeChannelParticipantsRequest.cc
Normal file
324
rtc/src/model/DescribeChannelParticipantsRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeChannelParticipantsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeChannelParticipantsRequest;
|
||||
|
||||
DescribeChannelParticipantsRequest::DescribeChannelParticipantsRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelParticipants")
|
||||
{}
|
||||
|
||||
DescribeChannelParticipantsRequest::~DescribeChannelParticipantsRequest()
|
||||
{}
|
||||
|
||||
long DescribeChannelParticipantsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeChannelParticipantsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeChannelParticipantsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
int DescribeChannelParticipantsRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
int DescribeChannelParticipantsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeChannelParticipantsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setCoreParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeChannelParticipantsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeChannelParticipantsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeChannelParticipantsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeChannelParticipantsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelParticipantsRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeChannelParticipantsRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
77
rtc/src/model/DescribeChannelParticipantsResult.cc
Normal file
77
rtc/src/model/DescribeChannelParticipantsResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeChannelParticipantsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeChannelParticipantsResult::DescribeChannelParticipantsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeChannelParticipantsResult::DescribeChannelParticipantsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeChannelParticipantsResult::~DescribeChannelParticipantsResult()
|
||||
{}
|
||||
|
||||
void DescribeChannelParticipantsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserList = value["UserList"]["User"];
|
||||
for (const auto &item : allUserList)
|
||||
userList_.push_back(item.asString());
|
||||
if(!value["Timestamp"].isNull())
|
||||
timestamp_ = std::stoi(value["Timestamp"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeChannelParticipantsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
int DescribeChannelParticipantsResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeChannelParticipantsResult::getUserList()const
|
||||
{
|
||||
return userList_;
|
||||
}
|
||||
|
||||
int DescribeChannelParticipantsResult::getTimestamp()const
|
||||
{
|
||||
return timestamp_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeConferenceAuthInfoRequest::getApp_ip()const
|
||||
void DescribeConferenceAuthInfoRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeConferenceAuthInfoRequest::getPopProduct()const
|
||||
void DescribeConferenceAuthInfoRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long DescribeConferenceAuthInfoRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long DescribeConferenceAuthInfoRequest::getCallerParentId()const
|
||||
void DescribeConferenceAuthInfoRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeConferenceAuthInfoRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool DescribeConferenceAuthInfoRequest::getProxy_original_security_transport()co
|
||||
void DescribeConferenceAuthInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerBid()const
|
||||
void DescribeConferenceAuthInfoRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeConferenceAuthInfoRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DescribeConferenceAuthInfoRequest::getOwnerId()const
|
||||
void DescribeConferenceAuthInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeConferenceAuthInfoRequest::getProxy_original_source_ip()cons
|
||||
void DescribeConferenceAuthInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeConferenceAuthInfoRequest::getVersion()const
|
||||
void DescribeConferenceAuthInfoRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeConferenceAuthInfoRequest::getOwnerIdLoginEmail()const
|
||||
void DescribeConferenceAuthInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerType()const
|
||||
void DescribeConferenceAuthInfoRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeConferenceAuthInfoRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool DescribeConferenceAuthInfoRequest::getProxy_trust_transport_info()const
|
||||
void DescribeConferenceAuthInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeConferenceAuthInfoRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool DescribeConferenceAuthInfoRequest::getAk_mfa_present()const
|
||||
void DescribeConferenceAuthInfoRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string DescribeConferenceAuthInfoRequest::getAccessKeyId()const
|
||||
void DescribeConferenceAuthInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeConferenceAuthInfoRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool DescribeConferenceAuthInfoRequest::getSecurity_transport()const
|
||||
void DescribeConferenceAuthInfoRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getSecurityToken()const
|
||||
@@ -187,7 +187,7 @@ std::string DescribeConferenceAuthInfoRequest::getSecurityToken()const
|
||||
void DescribeConferenceAuthInfoRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getConferenceId()const
|
||||
@@ -198,7 +198,7 @@ std::string DescribeConferenceAuthInfoRequest::getConferenceId()const
|
||||
void DescribeConferenceAuthInfoRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string DescribeConferenceAuthInfoRequest::getRequestId()const
|
||||
void DescribeConferenceAuthInfoRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string DescribeConferenceAuthInfoRequest::getRequestContent()const
|
||||
void DescribeConferenceAuthInfoRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string DescribeConferenceAuthInfoRequest::getAppId()const
|
||||
void DescribeConferenceAuthInfoRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerBidEmail()const
|
||||
void DescribeConferenceAuthInfoRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeConferenceAuthInfoRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string DescribeConferenceAuthInfoRequest::getCallerUidEmail()const
|
||||
void DescribeConferenceAuthInfoRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeConferenceAuthInfoRequest::getCallerUid()const
|
||||
@@ -264,6 +264,6 @@ long DescribeConferenceAuthInfoRequest::getCallerUid()const
|
||||
void DescribeConferenceAuthInfoRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeConferenceAuthInfoResult::~DescribeConferenceAuthInfoResult()
|
||||
|
||||
void DescribeConferenceAuthInfoResult::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 authInfoNode = value["AuthInfo"];
|
||||
if(!authInfoNode["Key"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeRealTimeRecordDetailRequest::getApp_ip()const
|
||||
void DescribeRealTimeRecordDetailRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeRealTimeRecordDetailRequest::getPopProduct()const
|
||||
void DescribeRealTimeRecordDetailRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long DescribeRealTimeRecordDetailRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long DescribeRealTimeRecordDetailRequest::getCallerParentId()const
|
||||
void DescribeRealTimeRecordDetailRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordDetailRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool DescribeRealTimeRecordDetailRequest::getProxy_original_security_transport()
|
||||
void DescribeRealTimeRecordDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerBid()const
|
||||
void DescribeRealTimeRecordDetailRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRealTimeRecordDetailRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long DescribeRealTimeRecordDetailRequest::getOwnerId()const
|
||||
void DescribeRealTimeRecordDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeRealTimeRecordDetailRequest::getProxy_original_source_ip()co
|
||||
void DescribeRealTimeRecordDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeRealTimeRecordDetailRequest::getVersion()const
|
||||
void DescribeRealTimeRecordDetailRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeRealTimeRecordDetailRequest::getOwnerIdLoginEmail()const
|
||||
void DescribeRealTimeRecordDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerType()const
|
||||
void DescribeRealTimeRecordDetailRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordDetailRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool DescribeRealTimeRecordDetailRequest::getProxy_trust_transport_info()const
|
||||
void DescribeRealTimeRecordDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordDetailRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool DescribeRealTimeRecordDetailRequest::getAk_mfa_present()const
|
||||
void DescribeRealTimeRecordDetailRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string DescribeRealTimeRecordDetailRequest::getAccessKeyId()const
|
||||
void DescribeRealTimeRecordDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordDetailRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool DescribeRealTimeRecordDetailRequest::getSecurity_transport()const
|
||||
void DescribeRealTimeRecordDetailRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getRecordId()const
|
||||
@@ -187,7 +187,7 @@ std::string DescribeRealTimeRecordDetailRequest::getRecordId()const
|
||||
void DescribeRealTimeRecordDetailRequest::setRecordId(const std::string& recordId)
|
||||
{
|
||||
recordId_ = recordId;
|
||||
setParameter("RecordId", recordId);
|
||||
setCoreParameter("RecordId", recordId);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string DescribeRealTimeRecordDetailRequest::getSecurityToken()const
|
||||
void DescribeRealTimeRecordDetailRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string DescribeRealTimeRecordDetailRequest::getRequestId()const
|
||||
void DescribeRealTimeRecordDetailRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string DescribeRealTimeRecordDetailRequest::getRequestContent()const
|
||||
void DescribeRealTimeRecordDetailRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string DescribeRealTimeRecordDetailRequest::getAppId()const
|
||||
void DescribeRealTimeRecordDetailRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerBidEmail()const
|
||||
void DescribeRealTimeRecordDetailRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string DescribeRealTimeRecordDetailRequest::getCallerUidEmail()const
|
||||
void DescribeRealTimeRecordDetailRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordDetailRequest::getChannelId()const
|
||||
@@ -264,7 +264,7 @@ std::string DescribeRealTimeRecordDetailRequest::getChannelId()const
|
||||
void DescribeRealTimeRecordDetailRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
long DescribeRealTimeRecordDetailRequest::getCallerUid()const
|
||||
@@ -275,6 +275,6 @@ long DescribeRealTimeRecordDetailRequest::getCallerUid()const
|
||||
void DescribeRealTimeRecordDetailRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeRealTimeRecordDetailResult::~DescribeRealTimeRecordDetailResult()
|
||||
|
||||
void DescribeRealTimeRecordDetailResult::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 allRecordDetailInfos = value["RecordDetailInfos"]["RecordDetailInfo"];
|
||||
for (auto value : allRecordDetailInfos)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeRealTimeRecordListRequest::getApp_ip()const
|
||||
void DescribeRealTimeRecordListRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string DescribeRealTimeRecordListRequest::getPopProduct()const
|
||||
void DescribeRealTimeRecordListRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long DescribeRealTimeRecordListRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long DescribeRealTimeRecordListRequest::getCallerParentId()const
|
||||
void DescribeRealTimeRecordListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordListRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool DescribeRealTimeRecordListRequest::getProxy_original_security_transport()co
|
||||
void DescribeRealTimeRecordListRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getEndTime()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeRealTimeRecordListRequest::getEndTime()const
|
||||
void DescribeRealTimeRecordListRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getCallerBid()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerBid()const
|
||||
void DescribeRealTimeRecordListRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getStartTime()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeRealTimeRecordListRequest::getStartTime()const
|
||||
void DescribeRealTimeRecordListRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
long DescribeRealTimeRecordListRequest::getOwnerId()const
|
||||
@@ -110,7 +110,7 @@ long DescribeRealTimeRecordListRequest::getOwnerId()const
|
||||
void DescribeRealTimeRecordListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getProxy_original_source_ip()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeRealTimeRecordListRequest::getProxy_original_source_ip()cons
|
||||
void DescribeRealTimeRecordListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getVersion()const
|
||||
@@ -132,7 +132,7 @@ std::string DescribeRealTimeRecordListRequest::getVersion()const
|
||||
void DescribeRealTimeRecordListRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getOwnerIdLoginEmail()const
|
||||
@@ -143,7 +143,7 @@ std::string DescribeRealTimeRecordListRequest::getOwnerIdLoginEmail()const
|
||||
void DescribeRealTimeRecordListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getCallerType()const
|
||||
@@ -154,7 +154,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerType()const
|
||||
void DescribeRealTimeRecordListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordListRequest::getProxy_trust_transport_info()const
|
||||
@@ -165,7 +165,7 @@ bool DescribeRealTimeRecordListRequest::getProxy_trust_transport_info()const
|
||||
void DescribeRealTimeRecordListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordListRequest::getAk_mfa_present()const
|
||||
@@ -176,7 +176,7 @@ bool DescribeRealTimeRecordListRequest::getAk_mfa_present()const
|
||||
void DescribeRealTimeRecordListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getAccessKeyId()const
|
||||
@@ -187,7 +187,7 @@ std::string DescribeRealTimeRecordListRequest::getAccessKeyId()const
|
||||
void DescribeRealTimeRecordListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeRealTimeRecordListRequest::getSecurity_transport()const
|
||||
@@ -198,7 +198,7 @@ bool DescribeRealTimeRecordListRequest::getSecurity_transport()const
|
||||
void DescribeRealTimeRecordListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getSecurityToken()const
|
||||
@@ -209,7 +209,7 @@ std::string DescribeRealTimeRecordListRequest::getSecurityToken()const
|
||||
void DescribeRealTimeRecordListRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getRequestId()const
|
||||
@@ -220,7 +220,7 @@ std::string DescribeRealTimeRecordListRequest::getRequestId()const
|
||||
void DescribeRealTimeRecordListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getRequestContent()const
|
||||
@@ -231,7 +231,7 @@ std::string DescribeRealTimeRecordListRequest::getRequestContent()const
|
||||
void DescribeRealTimeRecordListRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerBidEmail()const
|
||||
void DescribeRealTimeRecordListRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRealTimeRecordListRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string DescribeRealTimeRecordListRequest::getCallerUidEmail()const
|
||||
void DescribeRealTimeRecordListRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRealTimeRecordListRequest::getCallerUid()const
|
||||
@@ -264,6 +264,6 @@ long DescribeRealTimeRecordListRequest::getCallerUid()const
|
||||
void DescribeRealTimeRecordListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeRealTimeRecordListResult::~DescribeRealTimeRecordListResult()
|
||||
|
||||
void DescribeRealTimeRecordListResult::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 allCommunicationRecordInfos = value["CommunicationRecordInfos"]["CommunicationRecordInfo"];
|
||||
for (auto value : allCommunicationRecordInfos)
|
||||
|
||||
@@ -33,7 +33,7 @@ long DescribeRecordDetailRequest::getCallerParentId()const
|
||||
void DescribeRecordDetailRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRecordDetailRequest::getProxy_original_security_transport()const
|
||||
@@ -44,7 +44,7 @@ bool DescribeRecordDetailRequest::getProxy_original_security_transport()const
|
||||
void DescribeRecordDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getStartTime()const
|
||||
@@ -55,7 +55,7 @@ std::string DescribeRecordDetailRequest::getStartTime()const
|
||||
void DescribeRecordDetailRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getProxy_original_source_ip()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeRecordDetailRequest::getProxy_original_source_ip()const
|
||||
void DescribeRecordDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getOwnerIdLoginEmail()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeRecordDetailRequest::getOwnerIdLoginEmail()const
|
||||
void DescribeRecordDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getCallerType()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeRecordDetailRequest::getCallerType()const
|
||||
void DescribeRecordDetailRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getAccessKeyId()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeRecordDetailRequest::getAccessKeyId()const
|
||||
void DescribeRecordDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getSecurityToken()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeRecordDetailRequest::getSecurityToken()const
|
||||
void DescribeRecordDetailRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getRequestContent()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeRecordDetailRequest::getRequestContent()const
|
||||
void DescribeRecordDetailRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getCallerBidEmail()const
|
||||
@@ -132,7 +132,7 @@ std::string DescribeRecordDetailRequest::getCallerBidEmail()const
|
||||
void DescribeRecordDetailRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getCallerUidEmail()const
|
||||
@@ -143,7 +143,7 @@ std::string DescribeRecordDetailRequest::getCallerUidEmail()const
|
||||
void DescribeRecordDetailRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRecordDetailRequest::getCallerUid()const
|
||||
@@ -154,7 +154,7 @@ long DescribeRecordDetailRequest::getCallerUid()const
|
||||
void DescribeRecordDetailRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getApp_ip()const
|
||||
@@ -165,7 +165,7 @@ std::string DescribeRecordDetailRequest::getApp_ip()const
|
||||
void DescribeRecordDetailRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getPopProduct()const
|
||||
@@ -176,7 +176,7 @@ std::string DescribeRecordDetailRequest::getPopProduct()const
|
||||
void DescribeRecordDetailRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getEndTime()const
|
||||
@@ -187,7 +187,7 @@ std::string DescribeRecordDetailRequest::getEndTime()const
|
||||
void DescribeRecordDetailRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getCallerBid()const
|
||||
@@ -198,7 +198,7 @@ std::string DescribeRecordDetailRequest::getCallerBid()const
|
||||
void DescribeRecordDetailRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRecordDetailRequest::getOwnerId()const
|
||||
@@ -209,7 +209,7 @@ long DescribeRecordDetailRequest::getOwnerId()const
|
||||
void DescribeRecordDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getVersion()const
|
||||
@@ -220,7 +220,7 @@ std::string DescribeRecordDetailRequest::getVersion()const
|
||||
void DescribeRecordDetailRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRecordDetailRequest::getProxy_trust_transport_info()const
|
||||
@@ -231,7 +231,7 @@ bool DescribeRecordDetailRequest::getProxy_trust_transport_info()const
|
||||
void DescribeRecordDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRecordDetailRequest::getAk_mfa_present()const
|
||||
@@ -242,7 +242,7 @@ bool DescribeRecordDetailRequest::getAk_mfa_present()const
|
||||
void DescribeRecordDetailRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRecordDetailRequest::getSecurity_transport()const
|
||||
@@ -253,7 +253,7 @@ bool DescribeRecordDetailRequest::getSecurity_transport()const
|
||||
void DescribeRecordDetailRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getRecordId()const
|
||||
@@ -264,7 +264,7 @@ std::string DescribeRecordDetailRequest::getRecordId()const
|
||||
void DescribeRecordDetailRequest::setRecordId(const std::string& recordId)
|
||||
{
|
||||
recordId_ = recordId;
|
||||
setParameter("RecordId", recordId);
|
||||
setCoreParameter("RecordId", recordId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getRequestId()const
|
||||
@@ -275,7 +275,7 @@ std::string DescribeRecordDetailRequest::getRequestId()const
|
||||
void DescribeRecordDetailRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getAppId()const
|
||||
@@ -286,7 +286,7 @@ std::string DescribeRecordDetailRequest::getAppId()const
|
||||
void DescribeRecordDetailRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordDetailRequest::getChannelId()const
|
||||
@@ -297,6 +297,6 @@ std::string DescribeRecordDetailRequest::getChannelId()const
|
||||
void DescribeRecordDetailRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeRecordDetailResult::~DescribeRecordDetailResult()
|
||||
|
||||
void DescribeRecordDetailResult::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 allRecordDetailInfos = value["RecordDetailInfos"]["RecordDetailInfo"];
|
||||
for (auto value : allRecordDetailInfos)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeRecordListRequest::getSortType()const
|
||||
void DescribeRecordListRequest::setSortType(const std::string& sortType)
|
||||
{
|
||||
sortType_ = sortType;
|
||||
setParameter("SortType", sortType);
|
||||
setCoreParameter("SortType", sortType);
|
||||
}
|
||||
|
||||
long DescribeRecordListRequest::getCallerParentId()const
|
||||
@@ -44,7 +44,7 @@ long DescribeRecordListRequest::getCallerParentId()const
|
||||
void DescribeRecordListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRecordListRequest::getProxy_original_security_transport()const
|
||||
@@ -55,7 +55,7 @@ bool DescribeRecordListRequest::getProxy_original_security_transport()const
|
||||
void DescribeRecordListRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getStartTime()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeRecordListRequest::getStartTime()const
|
||||
void DescribeRecordListRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeRecordListRequest::getProxy_original_source_ip()const
|
||||
void DescribeRecordListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getOwnerIdLoginEmail()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeRecordListRequest::getOwnerIdLoginEmail()const
|
||||
void DescribeRecordListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getCallerType()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeRecordListRequest::getCallerType()const
|
||||
void DescribeRecordListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeRecordListRequest::getAccessKeyId()const
|
||||
void DescribeRecordListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getSecurityToken()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeRecordListRequest::getSecurityToken()const
|
||||
void DescribeRecordListRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getRequestContent()const
|
||||
@@ -132,7 +132,7 @@ std::string DescribeRecordListRequest::getRequestContent()const
|
||||
void DescribeRecordListRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getServiceArea()const
|
||||
@@ -143,7 +143,7 @@ std::string DescribeRecordListRequest::getServiceArea()const
|
||||
void DescribeRecordListRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setParameter("ServiceArea", serviceArea);
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
long DescribeRecordListRequest::getPageSize()const
|
||||
@@ -154,7 +154,7 @@ long DescribeRecordListRequest::getPageSize()const
|
||||
void DescribeRecordListRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getCallerBidEmail()const
|
||||
@@ -165,7 +165,7 @@ std::string DescribeRecordListRequest::getCallerBidEmail()const
|
||||
void DescribeRecordListRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getId()const
|
||||
@@ -176,7 +176,7 @@ std::string DescribeRecordListRequest::getId()const
|
||||
void DescribeRecordListRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
setCoreParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getCallerUidEmail()const
|
||||
@@ -187,7 +187,7 @@ std::string DescribeRecordListRequest::getCallerUidEmail()const
|
||||
void DescribeRecordListRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRecordListRequest::getCallerUid()const
|
||||
@@ -198,7 +198,7 @@ long DescribeRecordListRequest::getCallerUid()const
|
||||
void DescribeRecordListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getApp_ip()const
|
||||
@@ -209,7 +209,7 @@ std::string DescribeRecordListRequest::getApp_ip()const
|
||||
void DescribeRecordListRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getPopProduct()const
|
||||
@@ -220,7 +220,7 @@ std::string DescribeRecordListRequest::getPopProduct()const
|
||||
void DescribeRecordListRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getEndTime()const
|
||||
@@ -231,7 +231,7 @@ std::string DescribeRecordListRequest::getEndTime()const
|
||||
void DescribeRecordListRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getCallerBid()const
|
||||
@@ -242,7 +242,7 @@ std::string DescribeRecordListRequest::getCallerBid()const
|
||||
void DescribeRecordListRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRecordListRequest::getOwnerId()const
|
||||
@@ -253,7 +253,7 @@ long DescribeRecordListRequest::getOwnerId()const
|
||||
void DescribeRecordListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getVersion()const
|
||||
@@ -264,7 +264,7 @@ std::string DescribeRecordListRequest::getVersion()const
|
||||
void DescribeRecordListRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRecordListRequest::getProxy_trust_transport_info()const
|
||||
@@ -275,7 +275,7 @@ bool DescribeRecordListRequest::getProxy_trust_transport_info()const
|
||||
void DescribeRecordListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRecordListRequest::getAk_mfa_present()const
|
||||
@@ -286,7 +286,7 @@ bool DescribeRecordListRequest::getAk_mfa_present()const
|
||||
void DescribeRecordListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRecordListRequest::getSecurity_transport()const
|
||||
@@ -297,7 +297,7 @@ bool DescribeRecordListRequest::getSecurity_transport()const
|
||||
void DescribeRecordListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getIdType()const
|
||||
@@ -308,7 +308,7 @@ std::string DescribeRecordListRequest::getIdType()const
|
||||
void DescribeRecordListRequest::setIdType(const std::string& idType)
|
||||
{
|
||||
idType_ = idType;
|
||||
setParameter("IdType", idType);
|
||||
setCoreParameter("IdType", idType);
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getRequestId()const
|
||||
@@ -319,7 +319,7 @@ std::string DescribeRecordListRequest::getRequestId()const
|
||||
void DescribeRecordListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long DescribeRecordListRequest::getPageNo()const
|
||||
@@ -330,7 +330,7 @@ long DescribeRecordListRequest::getPageNo()const
|
||||
void DescribeRecordListRequest::setPageNo(long pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setParameter("PageNo", std::to_string(pageNo));
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string DescribeRecordListRequest::getAppId()const
|
||||
@@ -341,6 +341,6 @@ std::string DescribeRecordListRequest::getAppId()const
|
||||
void DescribeRecordListRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeRecordListResult::~DescribeRecordListResult()
|
||||
|
||||
void DescribeRecordListResult::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 allCommunicationRecordInfos = value["CommunicationRecordInfos"]["CommunicationRecordInfo"];
|
||||
for (auto value : allCommunicationRecordInfos)
|
||||
|
||||
313
rtc/src/model/DescribeRtcChannelCntDataRequest.cc
Normal file
313
rtc/src/model/DescribeRtcChannelCntDataRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelCntDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcChannelCntDataRequest;
|
||||
|
||||
DescribeRtcChannelCntDataRequest::DescribeRtcChannelCntDataRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelCntData")
|
||||
{}
|
||||
|
||||
DescribeRtcChannelCntDataRequest::~DescribeRtcChannelCntDataRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcChannelCntDataRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRtcChannelCntDataRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelCntDataRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getServiceArea()const
|
||||
{
|
||||
return serviceArea_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelCntDataRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelCntDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelCntDataRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelCntDataRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelCntDataRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelCntDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelCntDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setCoreParameter("Interval", interval);
|
||||
}
|
||||
|
||||
63
rtc/src/model/DescribeRtcChannelCntDataResult.cc
Normal file
63
rtc/src/model/DescribeRtcChannelCntDataResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelCntDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcChannelCntDataResult::DescribeRtcChannelCntDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcChannelCntDataResult::DescribeRtcChannelCntDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcChannelCntDataResult::~DescribeRtcChannelCntDataResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcChannelCntDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allChannelCntDataPerInterval = value["ChannelCntDataPerInterval"]["ChannelCntModule"];
|
||||
for (auto value : allChannelCntDataPerInterval)
|
||||
{
|
||||
ChannelCntModule channelCntDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
channelCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["ActiveChannelCnt"].isNull())
|
||||
channelCntDataPerIntervalObject.activeChannelCnt = std::stol(value["ActiveChannelCnt"].asString());
|
||||
channelCntDataPerInterval_.push_back(channelCntDataPerIntervalObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRtcChannelCntDataResult::ChannelCntModule> DescribeRtcChannelCntDataResult::getChannelCntDataPerInterval()const
|
||||
{
|
||||
return channelCntDataPerInterval_;
|
||||
}
|
||||
|
||||
357
rtc/src/model/DescribeRtcChannelListRequest.cc
Normal file
357
rtc/src/model/DescribeRtcChannelListRequest.cc
Normal file
@@ -0,0 +1,357 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelListRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcChannelListRequest;
|
||||
|
||||
DescribeRtcChannelListRequest::DescribeRtcChannelListRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelList")
|
||||
{}
|
||||
|
||||
DescribeRtcChannelListRequest::~DescribeRtcChannelListRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcChannelListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getSortType()const
|
||||
{
|
||||
return sortType_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setSortType(const std::string& sortType)
|
||||
{
|
||||
sortType_ = sortType;
|
||||
setCoreParameter("SortType", sortType);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelListRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getServiceArea()const
|
||||
{
|
||||
return serviceArea_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelListRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelListRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setPageNo(long pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelListRequest::getTimePoint()const
|
||||
{
|
||||
return timePoint_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelListRequest::setTimePoint(const std::string& timePoint)
|
||||
{
|
||||
timePoint_ = timePoint;
|
||||
setCoreParameter("TimePoint", timePoint);
|
||||
}
|
||||
|
||||
91
rtc/src/model/DescribeRtcChannelListResult.cc
Normal file
91
rtc/src/model/DescribeRtcChannelListResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcChannelListResult::DescribeRtcChannelListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcChannelListResult::DescribeRtcChannelListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcChannelListResult::~DescribeRtcChannelListResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcChannelListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allChannelList = value["ChannelList"]["ChannelListItem"];
|
||||
for (auto value : allChannelList)
|
||||
{
|
||||
ChannelListItem channelListObject;
|
||||
if(!value["ChannelId"].isNull())
|
||||
channelListObject.channelId = value["ChannelId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
channelListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
channelListObject.endTime = value["EndTime"].asString();
|
||||
if(!value["TotalUserCnt"].isNull())
|
||||
channelListObject.totalUserCnt = std::stol(value["TotalUserCnt"].asString());
|
||||
auto allCallArea = value["CallArea"]["CallArea"];
|
||||
for (auto value : allCallArea)
|
||||
channelListObject.callArea.push_back(value.asString());
|
||||
channelList_.push_back(channelListObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNo"].isNull())
|
||||
pageNo_ = std::stol(value["PageNo"].asString());
|
||||
if(!value["TotalCnt"].isNull())
|
||||
totalCnt_ = std::stol(value["TotalCnt"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListResult::getTotalCnt()const
|
||||
{
|
||||
return totalCnt_;
|
||||
}
|
||||
|
||||
long DescribeRtcChannelListResult::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRtcChannelListResult::ChannelListItem> DescribeRtcChannelListResult::getChannelList()const
|
||||
{
|
||||
return channelList_;
|
||||
}
|
||||
|
||||
302
rtc/src/model/DescribeRtcChannelMetricRequest.cc
Normal file
302
rtc/src/model/DescribeRtcChannelMetricRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelMetricRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcChannelMetricRequest;
|
||||
|
||||
DescribeRtcChannelMetricRequest::DescribeRtcChannelMetricRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelMetric")
|
||||
{}
|
||||
|
||||
DescribeRtcChannelMetricRequest::~DescribeRtcChannelMetricRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcChannelMetricRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRtcChannelMetricRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelMetricRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelMetricRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelMetricRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelMetricRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelMetricRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelMetricRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelMetricRequest::getTimePoint()const
|
||||
{
|
||||
return timePoint_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelMetricRequest::setTimePoint(const std::string& timePoint)
|
||||
{
|
||||
timePoint_ = timePoint;
|
||||
setCoreParameter("TimePoint", timePoint);
|
||||
}
|
||||
|
||||
90
rtc/src/model/DescribeRtcChannelMetricResult.cc
Normal file
90
rtc/src/model/DescribeRtcChannelMetricResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelMetricResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcChannelMetricResult::DescribeRtcChannelMetricResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcChannelMetricResult::DescribeRtcChannelMetricResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcChannelMetricResult::~DescribeRtcChannelMetricResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcChannelMetricResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto channelMetricInfoNode = value["ChannelMetricInfo"];
|
||||
auto channelMetricNode = channelMetricInfoNode["ChannelMetric"];
|
||||
if(!channelMetricNode["ChannelId"].isNull())
|
||||
channelMetricInfo_.channelMetric.channelId = channelMetricNode["ChannelId"].asString();
|
||||
if(!channelMetricNode["UserCount"].isNull())
|
||||
channelMetricInfo_.channelMetric.userCount = std::stoi(channelMetricNode["UserCount"].asString());
|
||||
if(!channelMetricNode["PubUserCount"].isNull())
|
||||
channelMetricInfo_.channelMetric.pubUserCount = std::stoi(channelMetricNode["PubUserCount"].asString());
|
||||
if(!channelMetricNode["SubUserCount"].isNull())
|
||||
channelMetricInfo_.channelMetric.subUserCount = std::stoi(channelMetricNode["SubUserCount"].asString());
|
||||
if(!channelMetricNode["StartTime"].isNull())
|
||||
channelMetricInfo_.channelMetric.startTime = channelMetricNode["StartTime"].asString();
|
||||
if(!channelMetricNode["EndTime"].isNull())
|
||||
channelMetricInfo_.channelMetric.endTime = channelMetricNode["EndTime"].asString();
|
||||
auto durationNode = channelMetricInfoNode["Duration"];
|
||||
auto pubDurationNode = durationNode["PubDuration"];
|
||||
if(!pubDurationNode["Audio"].isNull())
|
||||
channelMetricInfo_.duration.pubDuration.audio = std::stoi(pubDurationNode["Audio"].asString());
|
||||
if(!pubDurationNode["Video360"].isNull())
|
||||
channelMetricInfo_.duration.pubDuration.video360 = std::stoi(pubDurationNode["Video360"].asString());
|
||||
if(!pubDurationNode["Video720"].isNull())
|
||||
channelMetricInfo_.duration.pubDuration.video720 = std::stoi(pubDurationNode["Video720"].asString());
|
||||
if(!pubDurationNode["Video1080"].isNull())
|
||||
channelMetricInfo_.duration.pubDuration.video1080 = std::stoi(pubDurationNode["Video1080"].asString());
|
||||
if(!pubDurationNode["Content"].isNull())
|
||||
channelMetricInfo_.duration.pubDuration.content = std::stoi(pubDurationNode["Content"].asString());
|
||||
auto subDurationNode = durationNode["SubDuration"];
|
||||
if(!subDurationNode["Audio"].isNull())
|
||||
channelMetricInfo_.duration.subDuration.audio = std::stoi(subDurationNode["Audio"].asString());
|
||||
if(!subDurationNode["Video360"].isNull())
|
||||
channelMetricInfo_.duration.subDuration.video360 = std::stoi(subDurationNode["Video360"].asString());
|
||||
if(!subDurationNode["Video720"].isNull())
|
||||
channelMetricInfo_.duration.subDuration.video720 = std::stoi(subDurationNode["Video720"].asString());
|
||||
if(!subDurationNode["Video1080"].isNull())
|
||||
channelMetricInfo_.duration.subDuration.video1080 = std::stoi(subDurationNode["Video1080"].asString());
|
||||
if(!subDurationNode["Content"].isNull())
|
||||
channelMetricInfo_.duration.subDuration.content = std::stoi(subDurationNode["Content"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeRtcChannelMetricResult::ChannelMetricInfo DescribeRtcChannelMetricResult::getChannelMetricInfo()const
|
||||
{
|
||||
return channelMetricInfo_;
|
||||
}
|
||||
|
||||
324
rtc/src/model/DescribeRtcChannelUserListRequest.cc
Normal file
324
rtc/src/model/DescribeRtcChannelUserListRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelUserListRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcChannelUserListRequest;
|
||||
|
||||
DescribeRtcChannelUserListRequest::DescribeRtcChannelUserListRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcChannelUserList")
|
||||
{}
|
||||
|
||||
DescribeRtcChannelUserListRequest::~DescribeRtcChannelUserListRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcChannelUserListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelUserListRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelUserListRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelUserListRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcChannelUserListRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setPageNo(long pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getChannelId()const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcChannelUserListRequest::getTimePoint()const
|
||||
{
|
||||
return timePoint_;
|
||||
}
|
||||
|
||||
void DescribeRtcChannelUserListRequest::setTimePoint(const std::string& timePoint)
|
||||
{
|
||||
timePoint_ = timePoint;
|
||||
setCoreParameter("TimePoint", timePoint);
|
||||
}
|
||||
|
||||
110
rtc/src/model/DescribeRtcChannelUserListResult.cc
Normal file
110
rtc/src/model/DescribeRtcChannelUserListResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcChannelUserListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcChannelUserListResult::DescribeRtcChannelUserListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcChannelUserListResult::DescribeRtcChannelUserListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcChannelUserListResult::~DescribeRtcChannelUserListResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcChannelUserListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserList = value["UserList"]["UserListItem"];
|
||||
for (auto value : allUserList)
|
||||
{
|
||||
UserListItem userListObject;
|
||||
if(!value["ChannelId"].isNull())
|
||||
userListObject.channelId = value["ChannelId"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
userListObject.userId = value["UserId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
userListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
userListObject.endTime = value["EndTime"].asString();
|
||||
if(!value["ServiceArea"].isNull())
|
||||
userListObject.serviceArea = value["ServiceArea"].asString();
|
||||
if(!value["SubAudio"].isNull())
|
||||
userListObject.subAudio = std::stoi(value["SubAudio"].asString());
|
||||
if(!value["PubAudio"].isNull())
|
||||
userListObject.pubAudio = std::stoi(value["PubAudio"].asString());
|
||||
if(!value["SubVideo360"].isNull())
|
||||
userListObject.subVideo360 = std::stoi(value["SubVideo360"].asString());
|
||||
if(!value["PubVideo360"].isNull())
|
||||
userListObject.pubVideo360 = std::stoi(value["PubVideo360"].asString());
|
||||
if(!value["SubVideo720"].isNull())
|
||||
userListObject.subVideo720 = std::stoi(value["SubVideo720"].asString());
|
||||
if(!value["PubVideo720"].isNull())
|
||||
userListObject.pubVideo720 = std::stoi(value["PubVideo720"].asString());
|
||||
if(!value["SubVideo1080"].isNull())
|
||||
userListObject.subVideo1080 = std::stoi(value["SubVideo1080"].asString());
|
||||
if(!value["PubVideo1080"].isNull())
|
||||
userListObject.pubVideo1080 = std::stoi(value["PubVideo1080"].asString());
|
||||
if(!value["SubContent"].isNull())
|
||||
userListObject.subContent = std::stoi(value["SubContent"].asString());
|
||||
if(!value["PubContent"].isNull())
|
||||
userListObject.pubContent = std::stoi(value["PubContent"].asString());
|
||||
userList_.push_back(userListObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNo"].isNull())
|
||||
pageNo_ = std::stol(value["PageNo"].asString());
|
||||
if(!value["TotalCnt"].isNull())
|
||||
totalCnt_ = std::stol(value["TotalCnt"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListResult::getTotalCnt()const
|
||||
{
|
||||
return totalCnt_;
|
||||
}
|
||||
|
||||
long DescribeRtcChannelUserListResult::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRtcChannelUserListResult::UserListItem> DescribeRtcChannelUserListResult::getUserList()const
|
||||
{
|
||||
return userList_;
|
||||
}
|
||||
|
||||
313
rtc/src/model/DescribeRtcDurationDataRequest.cc
Normal file
313
rtc/src/model/DescribeRtcDurationDataRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcDurationDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcDurationDataRequest;
|
||||
|
||||
DescribeRtcDurationDataRequest::DescribeRtcDurationDataRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcDurationData")
|
||||
{}
|
||||
|
||||
DescribeRtcDurationDataRequest::~DescribeRtcDurationDataRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcDurationDataRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRtcDurationDataRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcDurationDataRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getServiceArea()const
|
||||
{
|
||||
return serviceArea_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcDurationDataRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcDurationDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcDurationDataRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcDurationDataRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcDurationDataRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcDurationDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeRtcDurationDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setCoreParameter("Interval", interval);
|
||||
}
|
||||
|
||||
73
rtc/src/model/DescribeRtcDurationDataResult.cc
Normal file
73
rtc/src/model/DescribeRtcDurationDataResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcDurationDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcDurationDataResult::DescribeRtcDurationDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcDurationDataResult::DescribeRtcDurationDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcDurationDataResult::~DescribeRtcDurationDataResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcDurationDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDurationDataPerInterval = value["DurationDataPerInterval"]["DurationModule"];
|
||||
for (auto value : allDurationDataPerInterval)
|
||||
{
|
||||
DurationModule durationDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
durationDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["TotalDuration"].isNull())
|
||||
durationDataPerIntervalObject.totalDuration = std::stol(value["TotalDuration"].asString());
|
||||
if(!value["AudioDuration"].isNull())
|
||||
durationDataPerIntervalObject.audioDuration = std::stol(value["AudioDuration"].asString());
|
||||
if(!value["V360Duration"].isNull())
|
||||
durationDataPerIntervalObject.v360Duration = std::stol(value["V360Duration"].asString());
|
||||
if(!value["V720Duration"].isNull())
|
||||
durationDataPerIntervalObject.v720Duration = std::stol(value["V720Duration"].asString());
|
||||
if(!value["V1080Duration"].isNull())
|
||||
durationDataPerIntervalObject.v1080Duration = std::stol(value["V1080Duration"].asString());
|
||||
if(!value["ContentDuration"].isNull())
|
||||
durationDataPerIntervalObject.contentDuration = std::stol(value["ContentDuration"].asString());
|
||||
durationDataPerInterval_.push_back(durationDataPerIntervalObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRtcDurationDataResult::DurationModule> DescribeRtcDurationDataResult::getDurationDataPerInterval()const
|
||||
{
|
||||
return durationDataPerInterval_;
|
||||
}
|
||||
|
||||
313
rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc
Normal file
313
rtc/src/model/DescribeRtcPeakChannelCntDataRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcPeakChannelCntDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcPeakChannelCntDataRequest;
|
||||
|
||||
DescribeRtcPeakChannelCntDataRequest::DescribeRtcPeakChannelCntDataRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcPeakChannelCntData")
|
||||
{}
|
||||
|
||||
DescribeRtcPeakChannelCntDataRequest::~DescribeRtcPeakChannelCntDataRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcPeakChannelCntDataRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRtcPeakChannelCntDataRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakChannelCntDataRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getServiceArea()const
|
||||
{
|
||||
return serviceArea_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcPeakChannelCntDataRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcPeakChannelCntDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakChannelCntDataRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakChannelCntDataRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakChannelCntDataRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakChannelCntDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setCoreParameter("Interval", interval);
|
||||
}
|
||||
|
||||
65
rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc
Normal file
65
rtc/src/model/DescribeRtcPeakChannelCntDataResult.cc
Normal 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/rtc/model/DescribeRtcPeakChannelCntDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcPeakChannelCntDataResult::DescribeRtcPeakChannelCntDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcPeakChannelCntDataResult::DescribeRtcPeakChannelCntDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcPeakChannelCntDataResult::~DescribeRtcPeakChannelCntDataResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcPeakChannelCntDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPeakChannelCntDataPerInterval = value["PeakChannelCntDataPerInterval"]["PeakChannelCntModule"];
|
||||
for (auto value : allPeakChannelCntDataPerInterval)
|
||||
{
|
||||
PeakChannelCntModule peakChannelCntDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
peakChannelCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["ActiveChannelPeak"].isNull())
|
||||
peakChannelCntDataPerIntervalObject.activeChannelPeak = std::stol(value["ActiveChannelPeak"].asString());
|
||||
if(!value["ActiveChannelPeakTime"].isNull())
|
||||
peakChannelCntDataPerIntervalObject.activeChannelPeakTime = value["ActiveChannelPeakTime"].asString();
|
||||
peakChannelCntDataPerInterval_.push_back(peakChannelCntDataPerIntervalObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRtcPeakChannelCntDataResult::PeakChannelCntModule> DescribeRtcPeakChannelCntDataResult::getPeakChannelCntDataPerInterval()const
|
||||
{
|
||||
return peakChannelCntDataPerInterval_;
|
||||
}
|
||||
|
||||
313
rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc
Normal file
313
rtc/src/model/DescribeRtcPeakUserCntDataRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcPeakUserCntDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcPeakUserCntDataRequest;
|
||||
|
||||
DescribeRtcPeakUserCntDataRequest::DescribeRtcPeakUserCntDataRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcPeakUserCntData")
|
||||
{}
|
||||
|
||||
DescribeRtcPeakUserCntDataRequest::~DescribeRtcPeakUserCntDataRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcPeakUserCntDataRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRtcPeakUserCntDataRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakUserCntDataRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getServiceArea()const
|
||||
{
|
||||
return serviceArea_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcPeakUserCntDataRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcPeakUserCntDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakUserCntDataRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakUserCntDataRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcPeakUserCntDataRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcPeakUserCntDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeRtcPeakUserCntDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setCoreParameter("Interval", interval);
|
||||
}
|
||||
|
||||
65
rtc/src/model/DescribeRtcPeakUserCntDataResult.cc
Normal file
65
rtc/src/model/DescribeRtcPeakUserCntDataResult.cc
Normal 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/rtc/model/DescribeRtcPeakUserCntDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcPeakUserCntDataResult::DescribeRtcPeakUserCntDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcPeakUserCntDataResult::DescribeRtcPeakUserCntDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcPeakUserCntDataResult::~DescribeRtcPeakUserCntDataResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcPeakUserCntDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPeakUserCntDataPerInterval = value["PeakUserCntDataPerInterval"]["PeakUserCntModule"];
|
||||
for (auto value : allPeakUserCntDataPerInterval)
|
||||
{
|
||||
PeakUserCntModule peakUserCntDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
peakUserCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["ActiveUserPeak"].isNull())
|
||||
peakUserCntDataPerIntervalObject.activeUserPeak = std::stol(value["ActiveUserPeak"].asString());
|
||||
if(!value["ActiveUserPeakTime"].isNull())
|
||||
peakUserCntDataPerIntervalObject.activeUserPeakTime = value["ActiveUserPeakTime"].asString();
|
||||
peakUserCntDataPerInterval_.push_back(peakUserCntDataPerIntervalObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRtcPeakUserCntDataResult::PeakUserCntModule> DescribeRtcPeakUserCntDataResult::getPeakUserCntDataPerInterval()const
|
||||
{
|
||||
return peakUserCntDataPerInterval_;
|
||||
}
|
||||
|
||||
313
rtc/src/model/DescribeRtcUserCntDataRequest.cc
Normal file
313
rtc/src/model/DescribeRtcUserCntDataRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcUserCntDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRtcUserCntDataRequest;
|
||||
|
||||
DescribeRtcUserCntDataRequest::DescribeRtcUserCntDataRequest() :
|
||||
RpcServiceRequest("rtc", "2018-01-11", "DescribeRtcUserCntData")
|
||||
{}
|
||||
|
||||
DescribeRtcUserCntDataRequest::~DescribeRtcUserCntDataRequest()
|
||||
{}
|
||||
|
||||
long DescribeRtcUserCntDataRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeRtcUserCntDataRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeRtcUserCntDataRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getServiceArea()const
|
||||
{
|
||||
return serviceArea_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeRtcUserCntDataRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeRtcUserCntDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeRtcUserCntDataRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcUserCntDataRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeRtcUserCntDataRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeRtcUserCntDataRequest::getInterval()const
|
||||
{
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeRtcUserCntDataRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setCoreParameter("Interval", interval);
|
||||
}
|
||||
|
||||
63
rtc/src/model/DescribeRtcUserCntDataResult.cc
Normal file
63
rtc/src/model/DescribeRtcUserCntDataResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/rtc/model/DescribeRtcUserCntDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRtcUserCntDataResult::DescribeRtcUserCntDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRtcUserCntDataResult::DescribeRtcUserCntDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRtcUserCntDataResult::~DescribeRtcUserCntDataResult()
|
||||
{}
|
||||
|
||||
void DescribeRtcUserCntDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserCntDataPerInterval = value["UserCntDataPerInterval"]["UserCntModule"];
|
||||
for (auto value : allUserCntDataPerInterval)
|
||||
{
|
||||
UserCntModule userCntDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
userCntDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["ActiveUserCnt"].isNull())
|
||||
userCntDataPerIntervalObject.activeUserCnt = std::stol(value["ActiveUserCnt"].asString());
|
||||
userCntDataPerInterval_.push_back(userCntDataPerIntervalObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRtcUserCntDataResult::UserCntModule> DescribeRtcUserCntDataResult::getUserCntDataPerInterval()const
|
||||
{
|
||||
return userCntDataPerInterval_;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string DescribeStatisRequest::getSortType()const
|
||||
void DescribeStatisRequest::setSortType(const std::string& sortType)
|
||||
{
|
||||
sortType_ = sortType;
|
||||
setParameter("SortType", sortType);
|
||||
setCoreParameter("SortType", sortType);
|
||||
}
|
||||
|
||||
long DescribeStatisRequest::getCallerParentId()const
|
||||
@@ -44,7 +44,7 @@ long DescribeStatisRequest::getCallerParentId()const
|
||||
void DescribeStatisRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeStatisRequest::getProxy_original_security_transport()const
|
||||
@@ -55,7 +55,7 @@ bool DescribeStatisRequest::getProxy_original_security_transport()const
|
||||
void DescribeStatisRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getStartTime()const
|
||||
@@ -66,7 +66,7 @@ std::string DescribeStatisRequest::getStartTime()const
|
||||
void DescribeStatisRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string DescribeStatisRequest::getProxy_original_source_ip()const
|
||||
void DescribeStatisRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getOwnerIdLoginEmail()const
|
||||
@@ -88,7 +88,7 @@ std::string DescribeStatisRequest::getOwnerIdLoginEmail()const
|
||||
void DescribeStatisRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getCallerType()const
|
||||
@@ -99,7 +99,7 @@ std::string DescribeStatisRequest::getCallerType()const
|
||||
void DescribeStatisRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string DescribeStatisRequest::getAccessKeyId()const
|
||||
void DescribeStatisRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getSecurityToken()const
|
||||
@@ -121,7 +121,7 @@ std::string DescribeStatisRequest::getSecurityToken()const
|
||||
void DescribeStatisRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getDataType()const
|
||||
@@ -132,7 +132,7 @@ std::string DescribeStatisRequest::getDataType()const
|
||||
void DescribeStatisRequest::setDataType(const std::string& dataType)
|
||||
{
|
||||
dataType_ = dataType;
|
||||
setParameter("DataType", dataType);
|
||||
setCoreParameter("DataType", dataType);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getRequestContent()const
|
||||
@@ -143,7 +143,7 @@ std::string DescribeStatisRequest::getRequestContent()const
|
||||
void DescribeStatisRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getServiceArea()const
|
||||
@@ -154,7 +154,7 @@ std::string DescribeStatisRequest::getServiceArea()const
|
||||
void DescribeStatisRequest::setServiceArea(const std::string& serviceArea)
|
||||
{
|
||||
serviceArea_ = serviceArea;
|
||||
setParameter("ServiceArea", serviceArea);
|
||||
setCoreParameter("ServiceArea", serviceArea);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getCallerBidEmail()const
|
||||
@@ -165,7 +165,7 @@ std::string DescribeStatisRequest::getCallerBidEmail()const
|
||||
void DescribeStatisRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getCallerUidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string DescribeStatisRequest::getCallerUidEmail()const
|
||||
void DescribeStatisRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeStatisRequest::getCallerUid()const
|
||||
@@ -187,7 +187,7 @@ long DescribeStatisRequest::getCallerUid()const
|
||||
void DescribeStatisRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getApp_ip()const
|
||||
@@ -198,7 +198,7 @@ std::string DescribeStatisRequest::getApp_ip()const
|
||||
void DescribeStatisRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getPopProduct()const
|
||||
@@ -209,7 +209,7 @@ std::string DescribeStatisRequest::getPopProduct()const
|
||||
void DescribeStatisRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getEndTime()const
|
||||
@@ -220,7 +220,7 @@ std::string DescribeStatisRequest::getEndTime()const
|
||||
void DescribeStatisRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getCallerBid()const
|
||||
@@ -231,7 +231,7 @@ std::string DescribeStatisRequest::getCallerBid()const
|
||||
void DescribeStatisRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeStatisRequest::getOwnerId()const
|
||||
@@ -242,7 +242,7 @@ long DescribeStatisRequest::getOwnerId()const
|
||||
void DescribeStatisRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getVersion()const
|
||||
@@ -253,7 +253,7 @@ std::string DescribeStatisRequest::getVersion()const
|
||||
void DescribeStatisRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeStatisRequest::getProxy_trust_transport_info()const
|
||||
@@ -264,7 +264,7 @@ bool DescribeStatisRequest::getProxy_trust_transport_info()const
|
||||
void DescribeStatisRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeStatisRequest::getAk_mfa_present()const
|
||||
@@ -275,7 +275,7 @@ bool DescribeStatisRequest::getAk_mfa_present()const
|
||||
void DescribeStatisRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeStatisRequest::getSecurity_transport()const
|
||||
@@ -286,7 +286,7 @@ bool DescribeStatisRequest::getSecurity_transport()const
|
||||
void DescribeStatisRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getRequestId()const
|
||||
@@ -297,7 +297,7 @@ std::string DescribeStatisRequest::getRequestId()const
|
||||
void DescribeStatisRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getAppId()const
|
||||
@@ -308,7 +308,7 @@ std::string DescribeStatisRequest::getAppId()const
|
||||
void DescribeStatisRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeStatisRequest::getInterval()const
|
||||
@@ -319,6 +319,6 @@ std::string DescribeStatisRequest::getInterval()const
|
||||
void DescribeStatisRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setParameter("Interval", interval);
|
||||
setCoreParameter("Interval", interval);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ DescribeStatisResult::~DescribeStatisResult()
|
||||
|
||||
void DescribeStatisResult::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 allStatisInfos = value["StatisInfos"]["StatisInfo"];
|
||||
for (auto value : allStatisInfos)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetAllTemplateRequest::getApp_ip()const
|
||||
void GetAllTemplateRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string GetAllTemplateRequest::getPopProduct()const
|
||||
void GetAllTemplateRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long GetAllTemplateRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long GetAllTemplateRequest::getCallerParentId()const
|
||||
void GetAllTemplateRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool GetAllTemplateRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool GetAllTemplateRequest::getProxy_original_security_transport()const
|
||||
void GetAllTemplateRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string GetAllTemplateRequest::getCallerBid()const
|
||||
void GetAllTemplateRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long GetAllTemplateRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long GetAllTemplateRequest::getOwnerId()const
|
||||
void GetAllTemplateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string GetAllTemplateRequest::getProxy_original_source_ip()const
|
||||
void GetAllTemplateRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string GetAllTemplateRequest::getVersion()const
|
||||
void GetAllTemplateRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string GetAllTemplateRequest::getOwnerIdLoginEmail()const
|
||||
void GetAllTemplateRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string GetAllTemplateRequest::getCallerType()const
|
||||
void GetAllTemplateRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetAllTemplateRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool GetAllTemplateRequest::getProxy_trust_transport_info()const
|
||||
void GetAllTemplateRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool GetAllTemplateRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool GetAllTemplateRequest::getAk_mfa_present()const
|
||||
void GetAllTemplateRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string GetAllTemplateRequest::getAccessKeyId()const
|
||||
void GetAllTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetAllTemplateRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool GetAllTemplateRequest::getSecurity_transport()const
|
||||
void GetAllTemplateRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getSecurityToken()const
|
||||
@@ -187,7 +187,7 @@ std::string GetAllTemplateRequest::getSecurityToken()const
|
||||
void GetAllTemplateRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getRequestId()const
|
||||
@@ -198,7 +198,7 @@ std::string GetAllTemplateRequest::getRequestId()const
|
||||
void GetAllTemplateRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getRequestContent()const
|
||||
@@ -209,7 +209,7 @@ std::string GetAllTemplateRequest::getRequestContent()const
|
||||
void GetAllTemplateRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getAppId()const
|
||||
@@ -220,7 +220,7 @@ std::string GetAllTemplateRequest::getAppId()const
|
||||
void GetAllTemplateRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getCallerBidEmail()const
|
||||
@@ -231,7 +231,7 @@ std::string GetAllTemplateRequest::getCallerBidEmail()const
|
||||
void GetAllTemplateRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string GetAllTemplateRequest::getCallerUidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string GetAllTemplateRequest::getCallerUidEmail()const
|
||||
void GetAllTemplateRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long GetAllTemplateRequest::getCallerUid()const
|
||||
@@ -253,6 +253,6 @@ long GetAllTemplateRequest::getCallerUid()const
|
||||
void GetAllTemplateRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetAllTemplateResult::~GetAllTemplateResult()
|
||||
|
||||
void GetAllTemplateResult::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 allTemplateIds = value["TemplateIds"]["TemplateId"];
|
||||
for (const auto &item : allTemplateIds)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetMPUTaskStatusRequest::getApp_ip()const
|
||||
void GetMPUTaskStatusRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string GetMPUTaskStatusRequest::getPopProduct()const
|
||||
void GetMPUTaskStatusRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long GetMPUTaskStatusRequest::getResourceOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long GetMPUTaskStatusRequest::getResourceOwnerId()const
|
||||
void GetMPUTaskStatusRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long GetMPUTaskStatusRequest::getCallerParentId()const
|
||||
@@ -66,7 +66,7 @@ long GetMPUTaskStatusRequest::getCallerParentId()const
|
||||
void GetMPUTaskStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool GetMPUTaskStatusRequest::getProxy_original_security_transport()const
|
||||
@@ -77,7 +77,7 @@ bool GetMPUTaskStatusRequest::getProxy_original_security_transport()const
|
||||
void GetMPUTaskStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getCallerBid()const
|
||||
@@ -88,7 +88,7 @@ std::string GetMPUTaskStatusRequest::getCallerBid()const
|
||||
void GetMPUTaskStatusRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long GetMPUTaskStatusRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long GetMPUTaskStatusRequest::getOwnerId()const
|
||||
void GetMPUTaskStatusRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getProxy_original_source_ip()const
|
||||
@@ -110,7 +110,7 @@ std::string GetMPUTaskStatusRequest::getProxy_original_source_ip()const
|
||||
void GetMPUTaskStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getVersion()const
|
||||
@@ -121,7 +121,7 @@ std::string GetMPUTaskStatusRequest::getVersion()const
|
||||
void GetMPUTaskStatusRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getOwnerIdLoginEmail()const
|
||||
@@ -132,7 +132,7 @@ std::string GetMPUTaskStatusRequest::getOwnerIdLoginEmail()const
|
||||
void GetMPUTaskStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getCallerType()const
|
||||
@@ -143,7 +143,7 @@ std::string GetMPUTaskStatusRequest::getCallerType()const
|
||||
void GetMPUTaskStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetMPUTaskStatusRequest::getProxy_trust_transport_info()const
|
||||
@@ -154,7 +154,7 @@ bool GetMPUTaskStatusRequest::getProxy_trust_transport_info()const
|
||||
void GetMPUTaskStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool GetMPUTaskStatusRequest::getAk_mfa_present()const
|
||||
@@ -165,7 +165,7 @@ bool GetMPUTaskStatusRequest::getAk_mfa_present()const
|
||||
void GetMPUTaskStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getAccessKeyId()const
|
||||
@@ -176,7 +176,7 @@ std::string GetMPUTaskStatusRequest::getAccessKeyId()const
|
||||
void GetMPUTaskStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetMPUTaskStatusRequest::getSecurity_transport()const
|
||||
@@ -187,7 +187,7 @@ bool GetMPUTaskStatusRequest::getSecurity_transport()const
|
||||
void GetMPUTaskStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string GetMPUTaskStatusRequest::getSecurityToken()const
|
||||
void GetMPUTaskStatusRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string GetMPUTaskStatusRequest::getRequestId()const
|
||||
void GetMPUTaskStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string GetMPUTaskStatusRequest::getRequestContent()const
|
||||
void GetMPUTaskStatusRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string GetMPUTaskStatusRequest::getAppId()const
|
||||
void GetMPUTaskStatusRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string GetMPUTaskStatusRequest::getCallerBidEmail()const
|
||||
void GetMPUTaskStatusRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string GetMPUTaskStatusRequest::getCallerUidEmail()const
|
||||
void GetMPUTaskStatusRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string GetMPUTaskStatusRequest::getTaskId()const
|
||||
@@ -264,7 +264,7 @@ std::string GetMPUTaskStatusRequest::getTaskId()const
|
||||
void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
long GetMPUTaskStatusRequest::getCallerUid()const
|
||||
@@ -275,6 +275,6 @@ long GetMPUTaskStatusRequest::getCallerUid()const
|
||||
void GetMPUTaskStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetMPUTaskStatusResult::~GetMPUTaskStatusResult()
|
||||
|
||||
void GetMPUTaskStatusResult::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["Status"].isNull())
|
||||
status_ = std::stoi(value["Status"].asString());
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetTaskParamRequest::getApp_ip()const
|
||||
void GetTaskParamRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string GetTaskParamRequest::getPopProduct()const
|
||||
void GetTaskParamRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long GetTaskParamRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long GetTaskParamRequest::getCallerParentId()const
|
||||
void GetTaskParamRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool GetTaskParamRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool GetTaskParamRequest::getProxy_original_security_transport()const
|
||||
void GetTaskParamRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string GetTaskParamRequest::getCallerBid()const
|
||||
void GetTaskParamRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long GetTaskParamRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long GetTaskParamRequest::getOwnerId()const
|
||||
void GetTaskParamRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string GetTaskParamRequest::getProxy_original_source_ip()const
|
||||
void GetTaskParamRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string GetTaskParamRequest::getVersion()const
|
||||
void GetTaskParamRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string GetTaskParamRequest::getOwnerIdLoginEmail()const
|
||||
void GetTaskParamRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string GetTaskParamRequest::getCallerType()const
|
||||
void GetTaskParamRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetTaskParamRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool GetTaskParamRequest::getProxy_trust_transport_info()const
|
||||
void GetTaskParamRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool GetTaskParamRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool GetTaskParamRequest::getAk_mfa_present()const
|
||||
void GetTaskParamRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string GetTaskParamRequest::getAccessKeyId()const
|
||||
void GetTaskParamRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetTaskParamRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool GetTaskParamRequest::getSecurity_transport()const
|
||||
void GetTaskParamRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getSecurityToken()const
|
||||
@@ -187,7 +187,7 @@ std::string GetTaskParamRequest::getSecurityToken()const
|
||||
void GetTaskParamRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getRequestId()const
|
||||
@@ -198,7 +198,7 @@ std::string GetTaskParamRequest::getRequestId()const
|
||||
void GetTaskParamRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getRequestContent()const
|
||||
@@ -209,7 +209,7 @@ std::string GetTaskParamRequest::getRequestContent()const
|
||||
void GetTaskParamRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getAppId()const
|
||||
@@ -220,7 +220,7 @@ std::string GetTaskParamRequest::getAppId()const
|
||||
void GetTaskParamRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getCallerBidEmail()const
|
||||
@@ -231,7 +231,7 @@ std::string GetTaskParamRequest::getCallerBidEmail()const
|
||||
void GetTaskParamRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string GetTaskParamRequest::getCallerUidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string GetTaskParamRequest::getCallerUidEmail()const
|
||||
void GetTaskParamRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long GetTaskParamRequest::getTaskId()const
|
||||
@@ -253,7 +253,7 @@ long GetTaskParamRequest::getTaskId()const
|
||||
void GetTaskParamRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
long GetTaskParamRequest::getCallerUid()const
|
||||
@@ -264,6 +264,6 @@ long GetTaskParamRequest::getCallerUid()const
|
||||
void GetTaskParamRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetTaskParamResult::~GetTaskParamResult()
|
||||
|
||||
void GetTaskParamResult::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 allMixPane = value["MixPane"]["MixPaneItem"];
|
||||
for (auto value : allMixPane)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetTaskStatusRequest::getApp_ip()const
|
||||
void GetTaskStatusRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string GetTaskStatusRequest::getPopProduct()const
|
||||
void GetTaskStatusRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long GetTaskStatusRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long GetTaskStatusRequest::getCallerParentId()const
|
||||
void GetTaskStatusRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool GetTaskStatusRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool GetTaskStatusRequest::getProxy_original_security_transport()const
|
||||
void GetTaskStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string GetTaskStatusRequest::getCallerBid()const
|
||||
void GetTaskStatusRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long GetTaskStatusRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long GetTaskStatusRequest::getOwnerId()const
|
||||
void GetTaskStatusRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string GetTaskStatusRequest::getProxy_original_source_ip()const
|
||||
void GetTaskStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string GetTaskStatusRequest::getVersion()const
|
||||
void GetTaskStatusRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string GetTaskStatusRequest::getOwnerIdLoginEmail()const
|
||||
void GetTaskStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string GetTaskStatusRequest::getCallerType()const
|
||||
void GetTaskStatusRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetTaskStatusRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool GetTaskStatusRequest::getProxy_trust_transport_info()const
|
||||
void GetTaskStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool GetTaskStatusRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool GetTaskStatusRequest::getAk_mfa_present()const
|
||||
void GetTaskStatusRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string GetTaskStatusRequest::getAccessKeyId()const
|
||||
void GetTaskStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetTaskStatusRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool GetTaskStatusRequest::getSecurity_transport()const
|
||||
void GetTaskStatusRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getSecurityToken()const
|
||||
@@ -187,7 +187,7 @@ std::string GetTaskStatusRequest::getSecurityToken()const
|
||||
void GetTaskStatusRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getRequestId()const
|
||||
@@ -198,7 +198,7 @@ std::string GetTaskStatusRequest::getRequestId()const
|
||||
void GetTaskStatusRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getRequestContent()const
|
||||
@@ -209,7 +209,7 @@ std::string GetTaskStatusRequest::getRequestContent()const
|
||||
void GetTaskStatusRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getAppId()const
|
||||
@@ -220,7 +220,7 @@ std::string GetTaskStatusRequest::getAppId()const
|
||||
void GetTaskStatusRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getCallerBidEmail()const
|
||||
@@ -231,7 +231,7 @@ std::string GetTaskStatusRequest::getCallerBidEmail()const
|
||||
void GetTaskStatusRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getCallerUidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string GetTaskStatusRequest::getCallerUidEmail()const
|
||||
void GetTaskStatusRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string GetTaskStatusRequest::getChannelId()const
|
||||
@@ -253,7 +253,7 @@ std::string GetTaskStatusRequest::getChannelId()const
|
||||
void GetTaskStatusRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
long GetTaskStatusRequest::getTaskId()const
|
||||
@@ -264,7 +264,7 @@ long GetTaskStatusRequest::getTaskId()const
|
||||
void GetTaskStatusRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
long GetTaskStatusRequest::getCallerUid()const
|
||||
@@ -275,6 +275,6 @@ long GetTaskStatusRequest::getCallerUid()const
|
||||
void GetTaskStatusRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetTaskStatusResult::~GetTaskStatusResult()
|
||||
|
||||
void GetTaskStatusResult::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["Status"].isNull())
|
||||
status_ = std::stoi(value["Status"].asString());
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string GetTemplateInfoRequest::getApp_ip()const
|
||||
void GetTemplateInfoRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string GetTemplateInfoRequest::getPopProduct()const
|
||||
void GetTemplateInfoRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long GetTemplateInfoRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long GetTemplateInfoRequest::getCallerParentId()const
|
||||
void GetTemplateInfoRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool GetTemplateInfoRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool GetTemplateInfoRequest::getProxy_original_security_transport()const
|
||||
void GetTemplateInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string GetTemplateInfoRequest::getCallerBid()const
|
||||
void GetTemplateInfoRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long GetTemplateInfoRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long GetTemplateInfoRequest::getOwnerId()const
|
||||
void GetTemplateInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string GetTemplateInfoRequest::getProxy_original_source_ip()const
|
||||
void GetTemplateInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
long GetTemplateInfoRequest::getTemplateId()const
|
||||
@@ -110,7 +110,7 @@ long GetTemplateInfoRequest::getTemplateId()const
|
||||
void GetTemplateInfoRequest::setTemplateId(long templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", std::to_string(templateId));
|
||||
setCoreParameter("TemplateId", std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getVersion()const
|
||||
@@ -121,7 +121,7 @@ std::string GetTemplateInfoRequest::getVersion()const
|
||||
void GetTemplateInfoRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getOwnerIdLoginEmail()const
|
||||
@@ -132,7 +132,7 @@ std::string GetTemplateInfoRequest::getOwnerIdLoginEmail()const
|
||||
void GetTemplateInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getCallerType()const
|
||||
@@ -143,7 +143,7 @@ std::string GetTemplateInfoRequest::getCallerType()const
|
||||
void GetTemplateInfoRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool GetTemplateInfoRequest::getProxy_trust_transport_info()const
|
||||
@@ -154,7 +154,7 @@ bool GetTemplateInfoRequest::getProxy_trust_transport_info()const
|
||||
void GetTemplateInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool GetTemplateInfoRequest::getAk_mfa_present()const
|
||||
@@ -165,7 +165,7 @@ bool GetTemplateInfoRequest::getAk_mfa_present()const
|
||||
void GetTemplateInfoRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getAccessKeyId()const
|
||||
@@ -176,7 +176,7 @@ std::string GetTemplateInfoRequest::getAccessKeyId()const
|
||||
void GetTemplateInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetTemplateInfoRequest::getSecurity_transport()const
|
||||
@@ -187,7 +187,7 @@ bool GetTemplateInfoRequest::getSecurity_transport()const
|
||||
void GetTemplateInfoRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string GetTemplateInfoRequest::getSecurityToken()const
|
||||
void GetTemplateInfoRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string GetTemplateInfoRequest::getRequestId()const
|
||||
void GetTemplateInfoRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string GetTemplateInfoRequest::getRequestContent()const
|
||||
void GetTemplateInfoRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string GetTemplateInfoRequest::getAppId()const
|
||||
void GetTemplateInfoRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string GetTemplateInfoRequest::getCallerBidEmail()const
|
||||
void GetTemplateInfoRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string GetTemplateInfoRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string GetTemplateInfoRequest::getCallerUidEmail()const
|
||||
void GetTemplateInfoRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long GetTemplateInfoRequest::getCallerUid()const
|
||||
@@ -264,6 +264,6 @@ long GetTemplateInfoRequest::getCallerUid()const
|
||||
void GetTemplateInfoRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetTemplateInfoResult::~GetTemplateInfoResult()
|
||||
|
||||
void GetTemplateInfoResult::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 layOutNode = value["LayOut"];
|
||||
if(!layOutNode["Color"].isNull())
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ModifyAppRequest::getApp_ip()const
|
||||
void ModifyAppRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string ModifyAppRequest::getPopProduct()const
|
||||
void ModifyAppRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long ModifyAppRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long ModifyAppRequest::getCallerParentId()const
|
||||
void ModifyAppRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ModifyAppRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool ModifyAppRequest::getProxy_original_security_transport()const
|
||||
void ModifyAppRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string ModifyAppRequest::getCallerBid()const
|
||||
void ModifyAppRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ModifyAppRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long ModifyAppRequest::getOwnerId()const
|
||||
void ModifyAppRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string ModifyAppRequest::getProxy_original_source_ip()const
|
||||
void ModifyAppRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string ModifyAppRequest::getVersion()const
|
||||
void ModifyAppRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string ModifyAppRequest::getOwnerIdLoginEmail()const
|
||||
void ModifyAppRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string ModifyAppRequest::getCallerType()const
|
||||
void ModifyAppRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool ModifyAppRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool ModifyAppRequest::getProxy_trust_transport_info()const
|
||||
void ModifyAppRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyAppRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool ModifyAppRequest::getAk_mfa_present()const
|
||||
void ModifyAppRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string ModifyAppRequest::getAccessKeyId()const
|
||||
void ModifyAppRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool ModifyAppRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool ModifyAppRequest::getSecurity_transport()const
|
||||
void ModifyAppRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getAppName()const
|
||||
@@ -187,7 +187,7 @@ std::string ModifyAppRequest::getAppName()const
|
||||
void ModifyAppRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
setCoreParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string ModifyAppRequest::getSecurityToken()const
|
||||
void ModifyAppRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string ModifyAppRequest::getRequestId()const
|
||||
void ModifyAppRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string ModifyAppRequest::getRequestContent()const
|
||||
void ModifyAppRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string ModifyAppRequest::getAppId()const
|
||||
void ModifyAppRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string ModifyAppRequest::getCallerBidEmail()const
|
||||
void ModifyAppRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string ModifyAppRequest::getCallerUidEmail()const
|
||||
void ModifyAppRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ModifyAppRequest::getCallerUid()const
|
||||
@@ -264,6 +264,6 @@ long ModifyAppRequest::getCallerUid()const
|
||||
void ModifyAppRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyAppResult::~ModifyAppResult()
|
||||
|
||||
void ModifyAppResult::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ long ModifyConferenceRequest::getCallerParentId()const
|
||||
void ModifyConferenceRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ModifyConferenceRequest::getProxy_original_security_transport()const
|
||||
@@ -44,7 +44,7 @@ bool ModifyConferenceRequest::getProxy_original_security_transport()const
|
||||
void ModifyConferenceRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getStartTime()const
|
||||
@@ -55,7 +55,7 @@ std::string ModifyConferenceRequest::getStartTime()const
|
||||
void ModifyConferenceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getProxy_original_source_ip()const
|
||||
@@ -66,7 +66,7 @@ std::string ModifyConferenceRequest::getProxy_original_source_ip()const
|
||||
void ModifyConferenceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getType()const
|
||||
@@ -77,7 +77,7 @@ std::string ModifyConferenceRequest::getType()const
|
||||
void ModifyConferenceRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
setCoreParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getOwnerIdLoginEmail()const
|
||||
@@ -88,7 +88,7 @@ std::string ModifyConferenceRequest::getOwnerIdLoginEmail()const
|
||||
void ModifyConferenceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getCallerType()const
|
||||
@@ -99,7 +99,7 @@ std::string ModifyConferenceRequest::getCallerType()const
|
||||
void ModifyConferenceRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getAccessKeyId()const
|
||||
@@ -110,7 +110,7 @@ std::string ModifyConferenceRequest::getAccessKeyId()const
|
||||
void ModifyConferenceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getSecurityToken()const
|
||||
@@ -121,7 +121,7 @@ std::string ModifyConferenceRequest::getSecurityToken()const
|
||||
void ModifyConferenceRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getConferenceId()const
|
||||
@@ -132,7 +132,7 @@ std::string ModifyConferenceRequest::getConferenceId()const
|
||||
void ModifyConferenceRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getConferenceName()const
|
||||
@@ -143,7 +143,7 @@ std::string ModifyConferenceRequest::getConferenceName()const
|
||||
void ModifyConferenceRequest::setConferenceName(const std::string& conferenceName)
|
||||
{
|
||||
conferenceName_ = conferenceName;
|
||||
setParameter("ConferenceName", conferenceName);
|
||||
setCoreParameter("ConferenceName", conferenceName);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getRequestContent()const
|
||||
@@ -154,7 +154,7 @@ std::string ModifyConferenceRequest::getRequestContent()const
|
||||
void ModifyConferenceRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getCallerBidEmail()const
|
||||
@@ -165,7 +165,7 @@ std::string ModifyConferenceRequest::getCallerBidEmail()const
|
||||
void ModifyConferenceRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getCallerUidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string ModifyConferenceRequest::getCallerUidEmail()const
|
||||
void ModifyConferenceRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ModifyConferenceRequest::getCallerUid()const
|
||||
@@ -187,7 +187,7 @@ long ModifyConferenceRequest::getCallerUid()const
|
||||
void ModifyConferenceRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getApp_ip()const
|
||||
@@ -198,7 +198,7 @@ std::string ModifyConferenceRequest::getApp_ip()const
|
||||
void ModifyConferenceRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getPopProduct()const
|
||||
@@ -209,7 +209,7 @@ std::string ModifyConferenceRequest::getPopProduct()const
|
||||
void ModifyConferenceRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getCallerBid()const
|
||||
@@ -220,7 +220,7 @@ std::string ModifyConferenceRequest::getCallerBid()const
|
||||
void ModifyConferenceRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ModifyConferenceRequest::getOwnerId()const
|
||||
@@ -231,7 +231,7 @@ long ModifyConferenceRequest::getOwnerId()const
|
||||
void ModifyConferenceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getVersion()const
|
||||
@@ -242,7 +242,7 @@ std::string ModifyConferenceRequest::getVersion()const
|
||||
void ModifyConferenceRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool ModifyConferenceRequest::getProxy_trust_transport_info()const
|
||||
@@ -253,7 +253,7 @@ bool ModifyConferenceRequest::getProxy_trust_transport_info()const
|
||||
void ModifyConferenceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyConferenceRequest::getAk_mfa_present()const
|
||||
@@ -264,7 +264,7 @@ bool ModifyConferenceRequest::getAk_mfa_present()const
|
||||
void ModifyConferenceRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyConferenceRequest::getSecurity_transport()const
|
||||
@@ -275,7 +275,7 @@ bool ModifyConferenceRequest::getSecurity_transport()const
|
||||
void ModifyConferenceRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getRequestId()const
|
||||
@@ -286,7 +286,7 @@ std::string ModifyConferenceRequest::getRequestId()const
|
||||
void ModifyConferenceRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string ModifyConferenceRequest::getAppId()const
|
||||
@@ -297,7 +297,7 @@ std::string ModifyConferenceRequest::getAppId()const
|
||||
void ModifyConferenceRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int ModifyConferenceRequest::getRemindNotice()const
|
||||
@@ -308,6 +308,6 @@ int ModifyConferenceRequest::getRemindNotice()const
|
||||
void ModifyConferenceRequest::setRemindNotice(int remindNotice)
|
||||
{
|
||||
remindNotice_ = remindNotice;
|
||||
setParameter("RemindNotice", std::to_string(remindNotice));
|
||||
setCoreParameter("RemindNotice", std::to_string(remindNotice));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ModifyConferenceResult::~ModifyConferenceResult()
|
||||
|
||||
void ModifyConferenceResult::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["ConferenceId"].isNull())
|
||||
conferenceId_ = value["ConferenceId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string MuteAudioAllRequest::getApp_ip()const
|
||||
void MuteAudioAllRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string MuteAudioAllRequest::getPopProduct()const
|
||||
void MuteAudioAllRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long MuteAudioAllRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long MuteAudioAllRequest::getCallerParentId()const
|
||||
void MuteAudioAllRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool MuteAudioAllRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool MuteAudioAllRequest::getProxy_original_security_transport()const
|
||||
void MuteAudioAllRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string MuteAudioAllRequest::getCallerBid()const
|
||||
void MuteAudioAllRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long MuteAudioAllRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long MuteAudioAllRequest::getOwnerId()const
|
||||
void MuteAudioAllRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string MuteAudioAllRequest::getProxy_original_source_ip()const
|
||||
void MuteAudioAllRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string MuteAudioAllRequest::getVersion()const
|
||||
void MuteAudioAllRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string MuteAudioAllRequest::getOwnerIdLoginEmail()const
|
||||
void MuteAudioAllRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string MuteAudioAllRequest::getCallerType()const
|
||||
void MuteAudioAllRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool MuteAudioAllRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool MuteAudioAllRequest::getProxy_trust_transport_info()const
|
||||
void MuteAudioAllRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool MuteAudioAllRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool MuteAudioAllRequest::getAk_mfa_present()const
|
||||
void MuteAudioAllRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string MuteAudioAllRequest::getAccessKeyId()const
|
||||
void MuteAudioAllRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool MuteAudioAllRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool MuteAudioAllRequest::getSecurity_transport()const
|
||||
void MuteAudioAllRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getParticipantId()const
|
||||
@@ -187,7 +187,7 @@ std::string MuteAudioAllRequest::getParticipantId()const
|
||||
void MuteAudioAllRequest::setParticipantId(const std::string& participantId)
|
||||
{
|
||||
participantId_ = participantId;
|
||||
setParameter("ParticipantId", participantId);
|
||||
setCoreParameter("ParticipantId", participantId);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string MuteAudioAllRequest::getSecurityToken()const
|
||||
void MuteAudioAllRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getConferenceId()const
|
||||
@@ -209,7 +209,7 @@ std::string MuteAudioAllRequest::getConferenceId()const
|
||||
void MuteAudioAllRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getRequestId()const
|
||||
@@ -220,7 +220,7 @@ std::string MuteAudioAllRequest::getRequestId()const
|
||||
void MuteAudioAllRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getRequestContent()const
|
||||
@@ -231,7 +231,7 @@ std::string MuteAudioAllRequest::getRequestContent()const
|
||||
void MuteAudioAllRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getAppId()const
|
||||
@@ -242,7 +242,7 @@ std::string MuteAudioAllRequest::getAppId()const
|
||||
void MuteAudioAllRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getCallerBidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string MuteAudioAllRequest::getCallerBidEmail()const
|
||||
void MuteAudioAllRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string MuteAudioAllRequest::getCallerUidEmail()const
|
||||
@@ -264,7 +264,7 @@ std::string MuteAudioAllRequest::getCallerUidEmail()const
|
||||
void MuteAudioAllRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long MuteAudioAllRequest::getCallerUid()const
|
||||
@@ -275,6 +275,6 @@ long MuteAudioAllRequest::getCallerUid()const
|
||||
void MuteAudioAllRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ MuteAudioAllResult::~MuteAudioAllResult()
|
||||
|
||||
void MuteAudioAllResult::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 allParticipants = value["Participants"]["Participant"];
|
||||
for (auto value : allParticipants)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string MuteAudioRequest::getApp_ip()const
|
||||
void MuteAudioRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string MuteAudioRequest::getPopProduct()const
|
||||
void MuteAudioRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::vector<std::string> MuteAudioRequest::getParticipantIds()const
|
||||
@@ -56,7 +56,7 @@ void MuteAudioRequest::setParticipantIds(const std::vector<std::string>& partici
|
||||
{
|
||||
participantIds_ = participantIds;
|
||||
for(int i = 0; i!= participantIds.size(); i++)
|
||||
setParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i));
|
||||
setCoreParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i));
|
||||
}
|
||||
|
||||
long MuteAudioRequest::getCallerParentId()const
|
||||
@@ -67,7 +67,7 @@ long MuteAudioRequest::getCallerParentId()const
|
||||
void MuteAudioRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool MuteAudioRequest::getProxy_original_security_transport()const
|
||||
@@ -78,7 +78,7 @@ bool MuteAudioRequest::getProxy_original_security_transport()const
|
||||
void MuteAudioRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getCallerBid()const
|
||||
@@ -89,7 +89,7 @@ std::string MuteAudioRequest::getCallerBid()const
|
||||
void MuteAudioRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long MuteAudioRequest::getOwnerId()const
|
||||
@@ -100,7 +100,7 @@ long MuteAudioRequest::getOwnerId()const
|
||||
void MuteAudioRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getProxy_original_source_ip()const
|
||||
@@ -111,7 +111,7 @@ std::string MuteAudioRequest::getProxy_original_source_ip()const
|
||||
void MuteAudioRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getVersion()const
|
||||
@@ -122,7 +122,7 @@ std::string MuteAudioRequest::getVersion()const
|
||||
void MuteAudioRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getOwnerIdLoginEmail()const
|
||||
@@ -133,7 +133,7 @@ std::string MuteAudioRequest::getOwnerIdLoginEmail()const
|
||||
void MuteAudioRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getCallerType()const
|
||||
@@ -144,7 +144,7 @@ std::string MuteAudioRequest::getCallerType()const
|
||||
void MuteAudioRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool MuteAudioRequest::getProxy_trust_transport_info()const
|
||||
@@ -155,7 +155,7 @@ bool MuteAudioRequest::getProxy_trust_transport_info()const
|
||||
void MuteAudioRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool MuteAudioRequest::getAk_mfa_present()const
|
||||
@@ -166,7 +166,7 @@ bool MuteAudioRequest::getAk_mfa_present()const
|
||||
void MuteAudioRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getAccessKeyId()const
|
||||
@@ -177,7 +177,7 @@ std::string MuteAudioRequest::getAccessKeyId()const
|
||||
void MuteAudioRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool MuteAudioRequest::getSecurity_transport()const
|
||||
@@ -188,7 +188,7 @@ bool MuteAudioRequest::getSecurity_transport()const
|
||||
void MuteAudioRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getSecurityToken()const
|
||||
@@ -199,7 +199,7 @@ std::string MuteAudioRequest::getSecurityToken()const
|
||||
void MuteAudioRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getConferenceId()const
|
||||
@@ -210,7 +210,7 @@ std::string MuteAudioRequest::getConferenceId()const
|
||||
void MuteAudioRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getRequestId()const
|
||||
@@ -221,7 +221,7 @@ std::string MuteAudioRequest::getRequestId()const
|
||||
void MuteAudioRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getRequestContent()const
|
||||
@@ -232,7 +232,7 @@ std::string MuteAudioRequest::getRequestContent()const
|
||||
void MuteAudioRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getAppId()const
|
||||
@@ -243,7 +243,7 @@ std::string MuteAudioRequest::getAppId()const
|
||||
void MuteAudioRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getCallerBidEmail()const
|
||||
@@ -254,7 +254,7 @@ std::string MuteAudioRequest::getCallerBidEmail()const
|
||||
void MuteAudioRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string MuteAudioRequest::getCallerUidEmail()const
|
||||
@@ -265,7 +265,7 @@ std::string MuteAudioRequest::getCallerUidEmail()const
|
||||
void MuteAudioRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long MuteAudioRequest::getCallerUid()const
|
||||
@@ -276,6 +276,6 @@ long MuteAudioRequest::getCallerUid()const
|
||||
void MuteAudioRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ MuteAudioResult::~MuteAudioResult()
|
||||
|
||||
void MuteAudioResult::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 allParticipants = value["Participants"]["Participant"];
|
||||
for (auto value : allParticipants)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string ReceiveNotifyRequest::getTraceId()const
|
||||
void ReceiveNotifyRequest::setTraceId(const std::string& traceId)
|
||||
{
|
||||
traceId_ = traceId;
|
||||
setParameter("TraceId", traceId);
|
||||
setCoreParameter("TraceId", traceId);
|
||||
}
|
||||
|
||||
long ReceiveNotifyRequest::getResourceOwnerId()const
|
||||
@@ -44,7 +44,7 @@ long ReceiveNotifyRequest::getResourceOwnerId()const
|
||||
void ReceiveNotifyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ReceiveNotifyRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long ReceiveNotifyRequest::getCallerParentId()const
|
||||
void ReceiveNotifyRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ReceiveNotifyRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool ReceiveNotifyRequest::getProxy_original_security_transport()const
|
||||
void ReceiveNotifyRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getProxy_original_source_ip()const
|
||||
@@ -77,7 +77,7 @@ std::string ReceiveNotifyRequest::getProxy_original_source_ip()const
|
||||
void ReceiveNotifyRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getOwnerIdLoginEmail()const
|
||||
@@ -88,7 +88,7 @@ std::string ReceiveNotifyRequest::getOwnerIdLoginEmail()const
|
||||
void ReceiveNotifyRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getCallerType()const
|
||||
@@ -99,7 +99,7 @@ std::string ReceiveNotifyRequest::getCallerType()const
|
||||
void ReceiveNotifyRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getContent()const
|
||||
@@ -110,7 +110,7 @@ std::string ReceiveNotifyRequest::getContent()const
|
||||
void ReceiveNotifyRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getAccessKeyId()const
|
||||
@@ -121,7 +121,7 @@ std::string ReceiveNotifyRequest::getAccessKeyId()const
|
||||
void ReceiveNotifyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getSecurityToken()const
|
||||
@@ -132,7 +132,7 @@ std::string ReceiveNotifyRequest::getSecurityToken()const
|
||||
void ReceiveNotifyRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getRequestContent()const
|
||||
@@ -143,7 +143,7 @@ std::string ReceiveNotifyRequest::getRequestContent()const
|
||||
void ReceiveNotifyRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getCallerBidEmail()const
|
||||
@@ -154,7 +154,7 @@ std::string ReceiveNotifyRequest::getCallerBidEmail()const
|
||||
void ReceiveNotifyRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getEvent()const
|
||||
@@ -165,7 +165,7 @@ std::string ReceiveNotifyRequest::getEvent()const
|
||||
void ReceiveNotifyRequest::setEvent(const std::string& event)
|
||||
{
|
||||
event_ = event;
|
||||
setParameter("Event", event);
|
||||
setCoreParameter("Event", event);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getCallerUidEmail()const
|
||||
@@ -176,7 +176,7 @@ std::string ReceiveNotifyRequest::getCallerUidEmail()const
|
||||
void ReceiveNotifyRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ReceiveNotifyRequest::getCallerUid()const
|
||||
@@ -187,7 +187,7 @@ long ReceiveNotifyRequest::getCallerUid()const
|
||||
void ReceiveNotifyRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getApp_ip()const
|
||||
@@ -198,7 +198,7 @@ std::string ReceiveNotifyRequest::getApp_ip()const
|
||||
void ReceiveNotifyRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getPopProduct()const
|
||||
@@ -209,7 +209,7 @@ std::string ReceiveNotifyRequest::getPopProduct()const
|
||||
void ReceiveNotifyRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getCallerBid()const
|
||||
@@ -220,7 +220,7 @@ std::string ReceiveNotifyRequest::getCallerBid()const
|
||||
void ReceiveNotifyRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ReceiveNotifyRequest::getOwnerId()const
|
||||
@@ -231,7 +231,7 @@ long ReceiveNotifyRequest::getOwnerId()const
|
||||
void ReceiveNotifyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getVersion()const
|
||||
@@ -242,7 +242,7 @@ std::string ReceiveNotifyRequest::getVersion()const
|
||||
void ReceiveNotifyRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool ReceiveNotifyRequest::getProxy_trust_transport_info()const
|
||||
@@ -253,7 +253,7 @@ bool ReceiveNotifyRequest::getProxy_trust_transport_info()const
|
||||
void ReceiveNotifyRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ReceiveNotifyRequest::getAk_mfa_present()const
|
||||
@@ -264,7 +264,7 @@ bool ReceiveNotifyRequest::getAk_mfa_present()const
|
||||
void ReceiveNotifyRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getContentType()const
|
||||
@@ -275,7 +275,7 @@ std::string ReceiveNotifyRequest::getContentType()const
|
||||
void ReceiveNotifyRequest::setContentType(const std::string& contentType)
|
||||
{
|
||||
contentType_ = contentType;
|
||||
setParameter("ContentType", contentType);
|
||||
setCoreParameter("ContentType", contentType);
|
||||
}
|
||||
|
||||
bool ReceiveNotifyRequest::getSecurity_transport()const
|
||||
@@ -286,7 +286,7 @@ bool ReceiveNotifyRequest::getSecurity_transport()const
|
||||
void ReceiveNotifyRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getRequestId()const
|
||||
@@ -297,7 +297,7 @@ std::string ReceiveNotifyRequest::getRequestId()const
|
||||
void ReceiveNotifyRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string ReceiveNotifyRequest::getBizId()const
|
||||
@@ -308,6 +308,6 @@ std::string ReceiveNotifyRequest::getBizId()const
|
||||
void ReceiveNotifyRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
setCoreParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ ReceiveNotifyResult::~ReceiveNotifyResult()
|
||||
|
||||
void ReceiveNotifyResult::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["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string RemoveParticipantsRequest::getApp_ip()const
|
||||
void RemoveParticipantsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string RemoveParticipantsRequest::getPopProduct()const
|
||||
void RemoveParticipantsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::vector<std::string> RemoveParticipantsRequest::getParticipantIds()const
|
||||
@@ -56,7 +56,7 @@ void RemoveParticipantsRequest::setParticipantIds(const std::vector<std::string>
|
||||
{
|
||||
participantIds_ = participantIds;
|
||||
for(int i = 0; i!= participantIds.size(); i++)
|
||||
setParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i));
|
||||
setCoreParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i));
|
||||
}
|
||||
|
||||
long RemoveParticipantsRequest::getCallerParentId()const
|
||||
@@ -67,7 +67,7 @@ long RemoveParticipantsRequest::getCallerParentId()const
|
||||
void RemoveParticipantsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool RemoveParticipantsRequest::getProxy_original_security_transport()const
|
||||
@@ -78,7 +78,7 @@ bool RemoveParticipantsRequest::getProxy_original_security_transport()const
|
||||
void RemoveParticipantsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getCallerBid()const
|
||||
@@ -89,7 +89,7 @@ std::string RemoveParticipantsRequest::getCallerBid()const
|
||||
void RemoveParticipantsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long RemoveParticipantsRequest::getOwnerId()const
|
||||
@@ -100,7 +100,7 @@ long RemoveParticipantsRequest::getOwnerId()const
|
||||
void RemoveParticipantsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getProxy_original_source_ip()const
|
||||
@@ -111,7 +111,7 @@ std::string RemoveParticipantsRequest::getProxy_original_source_ip()const
|
||||
void RemoveParticipantsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getVersion()const
|
||||
@@ -122,7 +122,7 @@ std::string RemoveParticipantsRequest::getVersion()const
|
||||
void RemoveParticipantsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getOwnerIdLoginEmail()const
|
||||
@@ -133,7 +133,7 @@ std::string RemoveParticipantsRequest::getOwnerIdLoginEmail()const
|
||||
void RemoveParticipantsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getCallerType()const
|
||||
@@ -144,7 +144,7 @@ std::string RemoveParticipantsRequest::getCallerType()const
|
||||
void RemoveParticipantsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool RemoveParticipantsRequest::getProxy_trust_transport_info()const
|
||||
@@ -155,7 +155,7 @@ bool RemoveParticipantsRequest::getProxy_trust_transport_info()const
|
||||
void RemoveParticipantsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool RemoveParticipantsRequest::getAk_mfa_present()const
|
||||
@@ -166,7 +166,7 @@ bool RemoveParticipantsRequest::getAk_mfa_present()const
|
||||
void RemoveParticipantsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getAccessKeyId()const
|
||||
@@ -177,7 +177,7 @@ std::string RemoveParticipantsRequest::getAccessKeyId()const
|
||||
void RemoveParticipantsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool RemoveParticipantsRequest::getSecurity_transport()const
|
||||
@@ -188,7 +188,7 @@ bool RemoveParticipantsRequest::getSecurity_transport()const
|
||||
void RemoveParticipantsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getSecurityToken()const
|
||||
@@ -199,7 +199,7 @@ std::string RemoveParticipantsRequest::getSecurityToken()const
|
||||
void RemoveParticipantsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getConferenceId()const
|
||||
@@ -210,7 +210,7 @@ std::string RemoveParticipantsRequest::getConferenceId()const
|
||||
void RemoveParticipantsRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getRequestId()const
|
||||
@@ -221,7 +221,7 @@ std::string RemoveParticipantsRequest::getRequestId()const
|
||||
void RemoveParticipantsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getRequestContent()const
|
||||
@@ -232,7 +232,7 @@ std::string RemoveParticipantsRequest::getRequestContent()const
|
||||
void RemoveParticipantsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getAppId()const
|
||||
@@ -243,7 +243,7 @@ std::string RemoveParticipantsRequest::getAppId()const
|
||||
void RemoveParticipantsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getCallerBidEmail()const
|
||||
@@ -254,7 +254,7 @@ std::string RemoveParticipantsRequest::getCallerBidEmail()const
|
||||
void RemoveParticipantsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string RemoveParticipantsRequest::getCallerUidEmail()const
|
||||
@@ -265,7 +265,7 @@ std::string RemoveParticipantsRequest::getCallerUidEmail()const
|
||||
void RemoveParticipantsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long RemoveParticipantsRequest::getCallerUid()const
|
||||
@@ -276,6 +276,6 @@ long RemoveParticipantsRequest::getCallerUid()const
|
||||
void RemoveParticipantsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ RemoveParticipantsResult::~RemoveParticipantsResult()
|
||||
|
||||
void RemoveParticipantsResult::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 allParticipants = value["Participants"]["Participant"];
|
||||
for (auto value : allParticipants)
|
||||
|
||||
@@ -25,6 +25,17 @@ RemoveTerminalsRequest::RemoveTerminalsRequest() :
|
||||
RemoveTerminalsRequest::~RemoveTerminalsRequest()
|
||||
{}
|
||||
|
||||
long RemoveTerminalsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void RemoveTerminalsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long RemoveTerminalsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
@@ -33,7 +44,7 @@ long RemoveTerminalsRequest::getCallerParentId()const
|
||||
void RemoveTerminalsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool RemoveTerminalsRequest::getProxy_original_security_transport()const
|
||||
@@ -44,7 +55,7 @@ bool RemoveTerminalsRequest::getProxy_original_security_transport()const
|
||||
void RemoveTerminalsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getProxy_original_source_ip()const
|
||||
@@ -55,7 +66,7 @@ std::string RemoveTerminalsRequest::getProxy_original_source_ip()const
|
||||
void RemoveTerminalsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getOwnerIdLoginEmail()const
|
||||
@@ -66,7 +77,7 @@ std::string RemoveTerminalsRequest::getOwnerIdLoginEmail()const
|
||||
void RemoveTerminalsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getCallerType()const
|
||||
@@ -77,7 +88,7 @@ std::string RemoveTerminalsRequest::getCallerType()const
|
||||
void RemoveTerminalsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getAccessKeyId()const
|
||||
@@ -88,7 +99,7 @@ std::string RemoveTerminalsRequest::getAccessKeyId()const
|
||||
void RemoveTerminalsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getSecurityToken()const
|
||||
@@ -99,7 +110,7 @@ std::string RemoveTerminalsRequest::getSecurityToken()const
|
||||
void RemoveTerminalsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getRequestContent()const
|
||||
@@ -110,7 +121,7 @@ std::string RemoveTerminalsRequest::getRequestContent()const
|
||||
void RemoveTerminalsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getCallerBidEmail()const
|
||||
@@ -121,7 +132,7 @@ std::string RemoveTerminalsRequest::getCallerBidEmail()const
|
||||
void RemoveTerminalsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::vector<std::string> RemoveTerminalsRequest::getTerminalIds()const
|
||||
@@ -133,7 +144,7 @@ void RemoveTerminalsRequest::setTerminalIds(const std::vector<std::string>& term
|
||||
{
|
||||
terminalIds_ = terminalIds;
|
||||
for(int i = 0; i!= terminalIds.size(); i++)
|
||||
setParameter("TerminalIds."+ std::to_string(i), terminalIds.at(i));
|
||||
setCoreParameter("TerminalIds."+ std::to_string(i), terminalIds.at(i));
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getCallerUidEmail()const
|
||||
@@ -144,7 +155,7 @@ std::string RemoveTerminalsRequest::getCallerUidEmail()const
|
||||
void RemoveTerminalsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long RemoveTerminalsRequest::getCallerUid()const
|
||||
@@ -155,7 +166,7 @@ long RemoveTerminalsRequest::getCallerUid()const
|
||||
void RemoveTerminalsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getApp_ip()const
|
||||
@@ -166,7 +177,7 @@ std::string RemoveTerminalsRequest::getApp_ip()const
|
||||
void RemoveTerminalsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getPopProduct()const
|
||||
@@ -177,18 +188,7 @@ std::string RemoveTerminalsRequest::getPopProduct()const
|
||||
void RemoveTerminalsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void RemoveTerminalsRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getCallerBid()const
|
||||
@@ -199,7 +199,7 @@ std::string RemoveTerminalsRequest::getCallerBid()const
|
||||
void RemoveTerminalsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long RemoveTerminalsRequest::getOwnerId()const
|
||||
@@ -210,7 +210,7 @@ long RemoveTerminalsRequest::getOwnerId()const
|
||||
void RemoveTerminalsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getVersion()const
|
||||
@@ -221,7 +221,7 @@ std::string RemoveTerminalsRequest::getVersion()const
|
||||
void RemoveTerminalsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool RemoveTerminalsRequest::getProxy_trust_transport_info()const
|
||||
@@ -232,7 +232,7 @@ bool RemoveTerminalsRequest::getProxy_trust_transport_info()const
|
||||
void RemoveTerminalsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool RemoveTerminalsRequest::getAk_mfa_present()const
|
||||
@@ -243,7 +243,7 @@ bool RemoveTerminalsRequest::getAk_mfa_present()const
|
||||
void RemoveTerminalsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool RemoveTerminalsRequest::getSecurity_transport()const
|
||||
@@ -254,7 +254,18 @@ bool RemoveTerminalsRequest::getSecurity_transport()const
|
||||
void RemoveTerminalsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void RemoveTerminalsRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getRequestId()const
|
||||
@@ -265,7 +276,7 @@ std::string RemoveTerminalsRequest::getRequestId()const
|
||||
void RemoveTerminalsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getAppId()const
|
||||
@@ -276,7 +287,7 @@ std::string RemoveTerminalsRequest::getAppId()const
|
||||
void RemoveTerminalsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string RemoveTerminalsRequest::getChannelId()const
|
||||
@@ -287,6 +298,6 @@ std::string RemoveTerminalsRequest::getChannelId()const
|
||||
void RemoveTerminalsRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ RemoveTerminalsResult::~RemoveTerminalsResult()
|
||||
|
||||
void RemoveTerminalsResult::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 allTerminals = value["Terminals"]["Terminal"];
|
||||
for (auto value : allTerminals)
|
||||
|
||||
@@ -33,7 +33,7 @@ long StartMPUTaskRequest::getResourceOwnerId()const
|
||||
void StartMPUTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::vector<StartMPUTaskRequest::UserPanes> StartMPUTaskRequest::getUserPanes()const
|
||||
@@ -48,9 +48,9 @@ void StartMPUTaskRequest::setUserPanes(const std::vector<UserPanes>& userPanes)
|
||||
for(int i = 0; i!= userPanes.size(); i++) {
|
||||
auto obj = userPanes.at(i);
|
||||
std::string str ="UserPanes."+ std::to_string(i);
|
||||
setParameter(str + ".PaneId", std::to_string(obj.paneId));
|
||||
setParameter(str + ".UserId", obj.userId);
|
||||
setParameter(str + ".SourceType", obj.sourceType);
|
||||
setCoreParameter(str + ".PaneId", std::to_string(obj.paneId));
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
setCoreParameter(str + ".SourceType", obj.sourceType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ long StartMPUTaskRequest::getCallerParentId()const
|
||||
void StartMPUTaskRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool StartMPUTaskRequest::getProxy_original_security_transport()const
|
||||
@@ -73,7 +73,7 @@ bool StartMPUTaskRequest::getProxy_original_security_transport()const
|
||||
void StartMPUTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getProxy_original_source_ip()const
|
||||
@@ -84,7 +84,7 @@ std::string StartMPUTaskRequest::getProxy_original_source_ip()const
|
||||
void StartMPUTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getOwnerIdLoginEmail()const
|
||||
@@ -95,7 +95,7 @@ std::string StartMPUTaskRequest::getOwnerIdLoginEmail()const
|
||||
void StartMPUTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getCallerType()const
|
||||
@@ -106,7 +106,7 @@ std::string StartMPUTaskRequest::getCallerType()const
|
||||
void StartMPUTaskRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getAccessKeyId()const
|
||||
@@ -117,7 +117,7 @@ std::string StartMPUTaskRequest::getAccessKeyId()const
|
||||
void StartMPUTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int StartMPUTaskRequest::getBackgroundColor()const
|
||||
@@ -128,7 +128,18 @@ int StartMPUTaskRequest::getBackgroundColor()const
|
||||
void StartMPUTaskRequest::setBackgroundColor(int backgroundColor)
|
||||
{
|
||||
backgroundColor_ = backgroundColor;
|
||||
setParameter("BackgroundColor", std::to_string(backgroundColor));
|
||||
setCoreParameter("BackgroundColor", std::to_string(backgroundColor));
|
||||
}
|
||||
|
||||
int StartMPUTaskRequest::getCropMode()const
|
||||
{
|
||||
return cropMode_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setCropMode(int cropMode)
|
||||
{
|
||||
cropMode_ = cropMode;
|
||||
setCoreParameter("CropMode", std::to_string(cropMode));
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getSecurityToken()const
|
||||
@@ -139,7 +150,7 @@ std::string StartMPUTaskRequest::getSecurityToken()const
|
||||
void StartMPUTaskRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getRequestContent()const
|
||||
@@ -150,7 +161,7 @@ std::string StartMPUTaskRequest::getRequestContent()const
|
||||
void StartMPUTaskRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getCallerBidEmail()const
|
||||
@@ -161,7 +172,18 @@ std::string StartMPUTaskRequest::getCallerBidEmail()const
|
||||
void StartMPUTaskRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getTaskProfile()const
|
||||
{
|
||||
return taskProfile_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setTaskProfile(const std::string& taskProfile)
|
||||
{
|
||||
taskProfile_ = taskProfile;
|
||||
setCoreParameter("TaskProfile", taskProfile);
|
||||
}
|
||||
|
||||
std::vector<long> StartMPUTaskRequest::getLayoutIds()const
|
||||
@@ -173,7 +195,7 @@ void StartMPUTaskRequest::setLayoutIds(const std::vector<long>& layoutIds)
|
||||
{
|
||||
layoutIds_ = layoutIds;
|
||||
for(int i = 0; i!= layoutIds.size(); i++)
|
||||
setParameter("LayoutIds."+ std::to_string(i), std::to_string(layoutIds.at(i)));
|
||||
setCoreParameter("LayoutIds."+ std::to_string(i), std::to_string(layoutIds.at(i)));
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getCallerUidEmail()const
|
||||
@@ -184,7 +206,7 @@ std::string StartMPUTaskRequest::getCallerUidEmail()const
|
||||
void StartMPUTaskRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getTaskId()const
|
||||
@@ -195,7 +217,7 @@ std::string StartMPUTaskRequest::getTaskId()const
|
||||
void StartMPUTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
long StartMPUTaskRequest::getCallerUid()const
|
||||
@@ -206,7 +228,7 @@ long StartMPUTaskRequest::getCallerUid()const
|
||||
void StartMPUTaskRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getStreamURL()const
|
||||
@@ -217,7 +239,7 @@ std::string StartMPUTaskRequest::getStreamURL()const
|
||||
void StartMPUTaskRequest::setStreamURL(const std::string& streamURL)
|
||||
{
|
||||
streamURL_ = streamURL;
|
||||
setParameter("StreamURL", streamURL);
|
||||
setCoreParameter("StreamURL", streamURL);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getApp_ip()const
|
||||
@@ -228,7 +250,7 @@ std::string StartMPUTaskRequest::getApp_ip()const
|
||||
void StartMPUTaskRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getPopProduct()const
|
||||
@@ -239,7 +261,7 @@ std::string StartMPUTaskRequest::getPopProduct()const
|
||||
void StartMPUTaskRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getCallerBid()const
|
||||
@@ -250,7 +272,7 @@ std::string StartMPUTaskRequest::getCallerBid()const
|
||||
void StartMPUTaskRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long StartMPUTaskRequest::getOwnerId()const
|
||||
@@ -261,7 +283,7 @@ long StartMPUTaskRequest::getOwnerId()const
|
||||
void StartMPUTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getVersion()const
|
||||
@@ -272,7 +294,7 @@ std::string StartMPUTaskRequest::getVersion()const
|
||||
void StartMPUTaskRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool StartMPUTaskRequest::getProxy_trust_transport_info()const
|
||||
@@ -283,7 +305,7 @@ bool StartMPUTaskRequest::getProxy_trust_transport_info()const
|
||||
void StartMPUTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StartMPUTaskRequest::getAk_mfa_present()const
|
||||
@@ -294,7 +316,7 @@ bool StartMPUTaskRequest::getAk_mfa_present()const
|
||||
void StartMPUTaskRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StartMPUTaskRequest::getSecurity_transport()const
|
||||
@@ -305,7 +327,18 @@ bool StartMPUTaskRequest::getSecurity_transport()const
|
||||
void StartMPUTaskRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void StartMPUTaskRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getRequestId()const
|
||||
@@ -316,7 +349,7 @@ std::string StartMPUTaskRequest::getRequestId()const
|
||||
void StartMPUTaskRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getAppId()const
|
||||
@@ -327,7 +360,7 @@ std::string StartMPUTaskRequest::getAppId()const
|
||||
void StartMPUTaskRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int StartMPUTaskRequest::getMediaEncode()const
|
||||
@@ -338,7 +371,7 @@ int StartMPUTaskRequest::getMediaEncode()const
|
||||
void StartMPUTaskRequest::setMediaEncode(int mediaEncode)
|
||||
{
|
||||
mediaEncode_ = mediaEncode;
|
||||
setParameter("MediaEncode", std::to_string(mediaEncode));
|
||||
setCoreParameter("MediaEncode", std::to_string(mediaEncode));
|
||||
}
|
||||
|
||||
std::string StartMPUTaskRequest::getChannelId()const
|
||||
@@ -349,6 +382,6 @@ std::string StartMPUTaskRequest::getChannelId()const
|
||||
void StartMPUTaskRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ StartMPUTaskResult::~StartMPUTaskResult()
|
||||
|
||||
void StartMPUTaskResult::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -37,9 +37,9 @@ void StartTaskRequest::setMixPanes(const std::vector<MixPanes>& mixPanes)
|
||||
for(int i = 0; i!= mixPanes.size(); i++) {
|
||||
auto obj = mixPanes.at(i);
|
||||
std::string str ="MixPanes."+ std::to_string(i);
|
||||
setParameter(str + ".PaneId", std::to_string(obj.paneId));
|
||||
setParameter(str + ".UserId", obj.userId);
|
||||
setParameter(str + ".SourceType", obj.sourceType);
|
||||
setCoreParameter(str + ".PaneId", std::to_string(obj.paneId));
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
setCoreParameter(str + ".SourceType", obj.sourceType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ long StartTaskRequest::getCallerParentId()const
|
||||
void StartTaskRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getIdempotentId()const
|
||||
@@ -62,7 +62,7 @@ std::string StartTaskRequest::getIdempotentId()const
|
||||
void StartTaskRequest::setIdempotentId(const std::string& idempotentId)
|
||||
{
|
||||
idempotentId_ = idempotentId;
|
||||
setParameter("IdempotentId", idempotentId);
|
||||
setCoreParameter("IdempotentId", idempotentId);
|
||||
}
|
||||
|
||||
bool StartTaskRequest::getProxy_original_security_transport()const
|
||||
@@ -73,7 +73,7 @@ bool StartTaskRequest::getProxy_original_security_transport()const
|
||||
void StartTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getProxy_original_source_ip()const
|
||||
@@ -84,7 +84,7 @@ std::string StartTaskRequest::getProxy_original_source_ip()const
|
||||
void StartTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getOwnerIdLoginEmail()const
|
||||
@@ -95,7 +95,7 @@ std::string StartTaskRequest::getOwnerIdLoginEmail()const
|
||||
void StartTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getCallerType()const
|
||||
@@ -106,7 +106,7 @@ std::string StartTaskRequest::getCallerType()const
|
||||
void StartTaskRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getAccessKeyId()const
|
||||
@@ -117,7 +117,7 @@ std::string StartTaskRequest::getAccessKeyId()const
|
||||
void StartTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getSecurityToken()const
|
||||
@@ -128,7 +128,7 @@ std::string StartTaskRequest::getSecurityToken()const
|
||||
void StartTaskRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getRequestContent()const
|
||||
@@ -139,7 +139,7 @@ std::string StartTaskRequest::getRequestContent()const
|
||||
void StartTaskRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getCallerBidEmail()const
|
||||
@@ -150,7 +150,7 @@ std::string StartTaskRequest::getCallerBidEmail()const
|
||||
void StartTaskRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getCallerUidEmail()const
|
||||
@@ -161,7 +161,7 @@ std::string StartTaskRequest::getCallerUidEmail()const
|
||||
void StartTaskRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long StartTaskRequest::getCallerUid()const
|
||||
@@ -172,7 +172,7 @@ long StartTaskRequest::getCallerUid()const
|
||||
void StartTaskRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getApp_ip()const
|
||||
@@ -183,7 +183,7 @@ std::string StartTaskRequest::getApp_ip()const
|
||||
void StartTaskRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getPopProduct()const
|
||||
@@ -194,7 +194,7 @@ std::string StartTaskRequest::getPopProduct()const
|
||||
void StartTaskRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getCallerBid()const
|
||||
@@ -205,7 +205,7 @@ std::string StartTaskRequest::getCallerBid()const
|
||||
void StartTaskRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long StartTaskRequest::getOwnerId()const
|
||||
@@ -216,7 +216,7 @@ long StartTaskRequest::getOwnerId()const
|
||||
void StartTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long StartTaskRequest::getTemplateId()const
|
||||
@@ -227,7 +227,7 @@ long StartTaskRequest::getTemplateId()const
|
||||
void StartTaskRequest::setTemplateId(long templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", std::to_string(templateId));
|
||||
setCoreParameter("TemplateId", std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getVersion()const
|
||||
@@ -238,7 +238,7 @@ std::string StartTaskRequest::getVersion()const
|
||||
void StartTaskRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool StartTaskRequest::getProxy_trust_transport_info()const
|
||||
@@ -249,7 +249,7 @@ bool StartTaskRequest::getProxy_trust_transport_info()const
|
||||
void StartTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StartTaskRequest::getAk_mfa_present()const
|
||||
@@ -260,7 +260,7 @@ bool StartTaskRequest::getAk_mfa_present()const
|
||||
void StartTaskRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StartTaskRequest::getSecurity_transport()const
|
||||
@@ -271,7 +271,7 @@ bool StartTaskRequest::getSecurity_transport()const
|
||||
void StartTaskRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getRequestId()const
|
||||
@@ -282,7 +282,7 @@ std::string StartTaskRequest::getRequestId()const
|
||||
void StartTaskRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getAppId()const
|
||||
@@ -293,7 +293,7 @@ std::string StartTaskRequest::getAppId()const
|
||||
void StartTaskRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getChannelId()const
|
||||
@@ -304,6 +304,6 @@ std::string StartTaskRequest::getChannelId()const
|
||||
void StartTaskRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ StartTaskResult::~StartTaskResult()
|
||||
|
||||
void StartTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string StopMPUTaskRequest::getApp_ip()const
|
||||
void StopMPUTaskRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string StopMPUTaskRequest::getPopProduct()const
|
||||
void StopMPUTaskRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long StopMPUTaskRequest::getResourceOwnerId()const
|
||||
@@ -55,7 +55,7 @@ long StopMPUTaskRequest::getResourceOwnerId()const
|
||||
void StopMPUTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long StopMPUTaskRequest::getCallerParentId()const
|
||||
@@ -66,7 +66,7 @@ long StopMPUTaskRequest::getCallerParentId()const
|
||||
void StopMPUTaskRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool StopMPUTaskRequest::getProxy_original_security_transport()const
|
||||
@@ -77,7 +77,7 @@ bool StopMPUTaskRequest::getProxy_original_security_transport()const
|
||||
void StopMPUTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getCallerBid()const
|
||||
@@ -88,7 +88,7 @@ std::string StopMPUTaskRequest::getCallerBid()const
|
||||
void StopMPUTaskRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long StopMPUTaskRequest::getOwnerId()const
|
||||
@@ -99,7 +99,7 @@ long StopMPUTaskRequest::getOwnerId()const
|
||||
void StopMPUTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getProxy_original_source_ip()const
|
||||
@@ -110,7 +110,7 @@ std::string StopMPUTaskRequest::getProxy_original_source_ip()const
|
||||
void StopMPUTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getVersion()const
|
||||
@@ -121,7 +121,7 @@ std::string StopMPUTaskRequest::getVersion()const
|
||||
void StopMPUTaskRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getOwnerIdLoginEmail()const
|
||||
@@ -132,7 +132,7 @@ std::string StopMPUTaskRequest::getOwnerIdLoginEmail()const
|
||||
void StopMPUTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getCallerType()const
|
||||
@@ -143,7 +143,7 @@ std::string StopMPUTaskRequest::getCallerType()const
|
||||
void StopMPUTaskRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool StopMPUTaskRequest::getProxy_trust_transport_info()const
|
||||
@@ -154,7 +154,7 @@ bool StopMPUTaskRequest::getProxy_trust_transport_info()const
|
||||
void StopMPUTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StopMPUTaskRequest::getAk_mfa_present()const
|
||||
@@ -165,7 +165,7 @@ bool StopMPUTaskRequest::getAk_mfa_present()const
|
||||
void StopMPUTaskRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getAccessKeyId()const
|
||||
@@ -176,7 +176,7 @@ std::string StopMPUTaskRequest::getAccessKeyId()const
|
||||
void StopMPUTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool StopMPUTaskRequest::getSecurity_transport()const
|
||||
@@ -187,7 +187,7 @@ bool StopMPUTaskRequest::getSecurity_transport()const
|
||||
void StopMPUTaskRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string StopMPUTaskRequest::getSecurityToken()const
|
||||
void StopMPUTaskRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getRequestId()const
|
||||
@@ -209,7 +209,7 @@ std::string StopMPUTaskRequest::getRequestId()const
|
||||
void StopMPUTaskRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getRequestContent()const
|
||||
@@ -220,7 +220,7 @@ std::string StopMPUTaskRequest::getRequestContent()const
|
||||
void StopMPUTaskRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getAppId()const
|
||||
@@ -231,7 +231,7 @@ std::string StopMPUTaskRequest::getAppId()const
|
||||
void StopMPUTaskRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getCallerBidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string StopMPUTaskRequest::getCallerBidEmail()const
|
||||
void StopMPUTaskRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getCallerUidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string StopMPUTaskRequest::getCallerUidEmail()const
|
||||
void StopMPUTaskRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string StopMPUTaskRequest::getTaskId()const
|
||||
@@ -264,7 +264,7 @@ std::string StopMPUTaskRequest::getTaskId()const
|
||||
void StopMPUTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
long StopMPUTaskRequest::getCallerUid()const
|
||||
@@ -275,6 +275,6 @@ long StopMPUTaskRequest::getCallerUid()const
|
||||
void StopMPUTaskRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ StopMPUTaskResult::~StopMPUTaskResult()
|
||||
|
||||
void StopMPUTaskResult::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string StopTaskRequest::getApp_ip()const
|
||||
void StopTaskRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string StopTaskRequest::getPopProduct()const
|
||||
void StopTaskRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long StopTaskRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long StopTaskRequest::getCallerParentId()const
|
||||
void StopTaskRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool StopTaskRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool StopTaskRequest::getProxy_original_security_transport()const
|
||||
void StopTaskRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string StopTaskRequest::getCallerBid()const
|
||||
void StopTaskRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long StopTaskRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long StopTaskRequest::getOwnerId()const
|
||||
void StopTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string StopTaskRequest::getProxy_original_source_ip()const
|
||||
void StopTaskRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string StopTaskRequest::getVersion()const
|
||||
void StopTaskRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string StopTaskRequest::getOwnerIdLoginEmail()const
|
||||
void StopTaskRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string StopTaskRequest::getCallerType()const
|
||||
void StopTaskRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool StopTaskRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool StopTaskRequest::getProxy_trust_transport_info()const
|
||||
void StopTaskRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StopTaskRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool StopTaskRequest::getAk_mfa_present()const
|
||||
void StopTaskRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string StopTaskRequest::getAccessKeyId()const
|
||||
void StopTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool StopTaskRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool StopTaskRequest::getSecurity_transport()const
|
||||
void StopTaskRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getSecurityToken()const
|
||||
@@ -187,7 +187,7 @@ std::string StopTaskRequest::getSecurityToken()const
|
||||
void StopTaskRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getRequestId()const
|
||||
@@ -198,7 +198,7 @@ std::string StopTaskRequest::getRequestId()const
|
||||
void StopTaskRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getRequestContent()const
|
||||
@@ -209,7 +209,7 @@ std::string StopTaskRequest::getRequestContent()const
|
||||
void StopTaskRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getAppId()const
|
||||
@@ -220,7 +220,7 @@ std::string StopTaskRequest::getAppId()const
|
||||
void StopTaskRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getCallerBidEmail()const
|
||||
@@ -231,7 +231,7 @@ std::string StopTaskRequest::getCallerBidEmail()const
|
||||
void StopTaskRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getCallerUidEmail()const
|
||||
@@ -242,7 +242,7 @@ std::string StopTaskRequest::getCallerUidEmail()const
|
||||
void StopTaskRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
std::string StopTaskRequest::getChannelId()const
|
||||
@@ -253,7 +253,7 @@ std::string StopTaskRequest::getChannelId()const
|
||||
void StopTaskRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
long StopTaskRequest::getTaskId()const
|
||||
@@ -264,7 +264,7 @@ long StopTaskRequest::getTaskId()const
|
||||
void StopTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
long StopTaskRequest::getCallerUid()const
|
||||
@@ -275,6 +275,6 @@ long StopTaskRequest::getCallerUid()const
|
||||
void StopTaskRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ StopTaskResult::~StopTaskResult()
|
||||
|
||||
void StopTaskResult::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());
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string UnmuteAudioAllRequest::getApp_ip()const
|
||||
void UnmuteAudioAllRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string UnmuteAudioAllRequest::getPopProduct()const
|
||||
void UnmuteAudioAllRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long UnmuteAudioAllRequest::getCallerParentId()const
|
||||
@@ -55,7 +55,7 @@ long UnmuteAudioAllRequest::getCallerParentId()const
|
||||
void UnmuteAudioAllRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool UnmuteAudioAllRequest::getProxy_original_security_transport()const
|
||||
@@ -66,7 +66,7 @@ bool UnmuteAudioAllRequest::getProxy_original_security_transport()const
|
||||
void UnmuteAudioAllRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getCallerBid()const
|
||||
@@ -77,7 +77,7 @@ std::string UnmuteAudioAllRequest::getCallerBid()const
|
||||
void UnmuteAudioAllRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long UnmuteAudioAllRequest::getOwnerId()const
|
||||
@@ -88,7 +88,7 @@ long UnmuteAudioAllRequest::getOwnerId()const
|
||||
void UnmuteAudioAllRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getProxy_original_source_ip()const
|
||||
@@ -99,7 +99,7 @@ std::string UnmuteAudioAllRequest::getProxy_original_source_ip()const
|
||||
void UnmuteAudioAllRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getVersion()const
|
||||
@@ -110,7 +110,7 @@ std::string UnmuteAudioAllRequest::getVersion()const
|
||||
void UnmuteAudioAllRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getOwnerIdLoginEmail()const
|
||||
@@ -121,7 +121,7 @@ std::string UnmuteAudioAllRequest::getOwnerIdLoginEmail()const
|
||||
void UnmuteAudioAllRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getCallerType()const
|
||||
@@ -132,7 +132,7 @@ std::string UnmuteAudioAllRequest::getCallerType()const
|
||||
void UnmuteAudioAllRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool UnmuteAudioAllRequest::getProxy_trust_transport_info()const
|
||||
@@ -143,7 +143,7 @@ bool UnmuteAudioAllRequest::getProxy_trust_transport_info()const
|
||||
void UnmuteAudioAllRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UnmuteAudioAllRequest::getAk_mfa_present()const
|
||||
@@ -154,7 +154,7 @@ bool UnmuteAudioAllRequest::getAk_mfa_present()const
|
||||
void UnmuteAudioAllRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getAccessKeyId()const
|
||||
@@ -165,7 +165,7 @@ std::string UnmuteAudioAllRequest::getAccessKeyId()const
|
||||
void UnmuteAudioAllRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool UnmuteAudioAllRequest::getSecurity_transport()const
|
||||
@@ -176,7 +176,7 @@ bool UnmuteAudioAllRequest::getSecurity_transport()const
|
||||
void UnmuteAudioAllRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getParticipantId()const
|
||||
@@ -187,7 +187,7 @@ std::string UnmuteAudioAllRequest::getParticipantId()const
|
||||
void UnmuteAudioAllRequest::setParticipantId(const std::string& participantId)
|
||||
{
|
||||
participantId_ = participantId;
|
||||
setParameter("ParticipantId", participantId);
|
||||
setCoreParameter("ParticipantId", participantId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getSecurityToken()const
|
||||
@@ -198,7 +198,7 @@ std::string UnmuteAudioAllRequest::getSecurityToken()const
|
||||
void UnmuteAudioAllRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getConferenceId()const
|
||||
@@ -209,7 +209,7 @@ std::string UnmuteAudioAllRequest::getConferenceId()const
|
||||
void UnmuteAudioAllRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getRequestId()const
|
||||
@@ -220,7 +220,7 @@ std::string UnmuteAudioAllRequest::getRequestId()const
|
||||
void UnmuteAudioAllRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getRequestContent()const
|
||||
@@ -231,7 +231,7 @@ std::string UnmuteAudioAllRequest::getRequestContent()const
|
||||
void UnmuteAudioAllRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getAppId()const
|
||||
@@ -242,7 +242,7 @@ std::string UnmuteAudioAllRequest::getAppId()const
|
||||
void UnmuteAudioAllRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getCallerBidEmail()const
|
||||
@@ -253,7 +253,7 @@ std::string UnmuteAudioAllRequest::getCallerBidEmail()const
|
||||
void UnmuteAudioAllRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioAllRequest::getCallerUidEmail()const
|
||||
@@ -264,7 +264,7 @@ std::string UnmuteAudioAllRequest::getCallerUidEmail()const
|
||||
void UnmuteAudioAllRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long UnmuteAudioAllRequest::getCallerUid()const
|
||||
@@ -275,6 +275,6 @@ long UnmuteAudioAllRequest::getCallerUid()const
|
||||
void UnmuteAudioAllRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ UnmuteAudioAllResult::~UnmuteAudioAllResult()
|
||||
|
||||
void UnmuteAudioAllResult::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 allParticipants = value["Participants"]["Participant"];
|
||||
for (auto value : allParticipants)
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string UnmuteAudioRequest::getApp_ip()const
|
||||
void UnmuteAudioRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getPopProduct()const
|
||||
@@ -44,7 +44,7 @@ std::string UnmuteAudioRequest::getPopProduct()const
|
||||
void UnmuteAudioRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::vector<std::string> UnmuteAudioRequest::getParticipantIds()const
|
||||
@@ -56,7 +56,7 @@ void UnmuteAudioRequest::setParticipantIds(const std::vector<std::string>& parti
|
||||
{
|
||||
participantIds_ = participantIds;
|
||||
for(int i = 0; i!= participantIds.size(); i++)
|
||||
setParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i));
|
||||
setCoreParameter("ParticipantIds."+ std::to_string(i), participantIds.at(i));
|
||||
}
|
||||
|
||||
long UnmuteAudioRequest::getCallerParentId()const
|
||||
@@ -67,7 +67,7 @@ long UnmuteAudioRequest::getCallerParentId()const
|
||||
void UnmuteAudioRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool UnmuteAudioRequest::getProxy_original_security_transport()const
|
||||
@@ -78,7 +78,7 @@ bool UnmuteAudioRequest::getProxy_original_security_transport()const
|
||||
void UnmuteAudioRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getCallerBid()const
|
||||
@@ -89,7 +89,7 @@ std::string UnmuteAudioRequest::getCallerBid()const
|
||||
void UnmuteAudioRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long UnmuteAudioRequest::getOwnerId()const
|
||||
@@ -100,7 +100,7 @@ long UnmuteAudioRequest::getOwnerId()const
|
||||
void UnmuteAudioRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getProxy_original_source_ip()const
|
||||
@@ -111,7 +111,7 @@ std::string UnmuteAudioRequest::getProxy_original_source_ip()const
|
||||
void UnmuteAudioRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getVersion()const
|
||||
@@ -122,7 +122,7 @@ std::string UnmuteAudioRequest::getVersion()const
|
||||
void UnmuteAudioRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getOwnerIdLoginEmail()const
|
||||
@@ -133,7 +133,7 @@ std::string UnmuteAudioRequest::getOwnerIdLoginEmail()const
|
||||
void UnmuteAudioRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getCallerType()const
|
||||
@@ -144,7 +144,7 @@ std::string UnmuteAudioRequest::getCallerType()const
|
||||
void UnmuteAudioRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool UnmuteAudioRequest::getProxy_trust_transport_info()const
|
||||
@@ -155,7 +155,7 @@ bool UnmuteAudioRequest::getProxy_trust_transport_info()const
|
||||
void UnmuteAudioRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UnmuteAudioRequest::getAk_mfa_present()const
|
||||
@@ -166,7 +166,7 @@ bool UnmuteAudioRequest::getAk_mfa_present()const
|
||||
void UnmuteAudioRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getAccessKeyId()const
|
||||
@@ -177,7 +177,7 @@ std::string UnmuteAudioRequest::getAccessKeyId()const
|
||||
void UnmuteAudioRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool UnmuteAudioRequest::getSecurity_transport()const
|
||||
@@ -188,7 +188,7 @@ bool UnmuteAudioRequest::getSecurity_transport()const
|
||||
void UnmuteAudioRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getSecurityToken()const
|
||||
@@ -199,7 +199,7 @@ std::string UnmuteAudioRequest::getSecurityToken()const
|
||||
void UnmuteAudioRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getConferenceId()const
|
||||
@@ -210,7 +210,7 @@ std::string UnmuteAudioRequest::getConferenceId()const
|
||||
void UnmuteAudioRequest::setConferenceId(const std::string& conferenceId)
|
||||
{
|
||||
conferenceId_ = conferenceId;
|
||||
setParameter("ConferenceId", conferenceId);
|
||||
setCoreParameter("ConferenceId", conferenceId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getRequestId()const
|
||||
@@ -221,7 +221,7 @@ std::string UnmuteAudioRequest::getRequestId()const
|
||||
void UnmuteAudioRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getRequestContent()const
|
||||
@@ -232,7 +232,7 @@ std::string UnmuteAudioRequest::getRequestContent()const
|
||||
void UnmuteAudioRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getAppId()const
|
||||
@@ -243,7 +243,7 @@ std::string UnmuteAudioRequest::getAppId()const
|
||||
void UnmuteAudioRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getCallerBidEmail()const
|
||||
@@ -254,7 +254,7 @@ std::string UnmuteAudioRequest::getCallerBidEmail()const
|
||||
void UnmuteAudioRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string UnmuteAudioRequest::getCallerUidEmail()const
|
||||
@@ -265,7 +265,7 @@ std::string UnmuteAudioRequest::getCallerUidEmail()const
|
||||
void UnmuteAudioRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long UnmuteAudioRequest::getCallerUid()const
|
||||
@@ -276,6 +276,6 @@ long UnmuteAudioRequest::getCallerUid()const
|
||||
void UnmuteAudioRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ UnmuteAudioResult::~UnmuteAudioResult()
|
||||
|
||||
void UnmuteAudioResult::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 allParticipants = value["Participants"]["Participant"];
|
||||
for (auto value : allParticipants)
|
||||
|
||||
@@ -25,6 +25,17 @@ UpdateChannelRequest::UpdateChannelRequest() :
|
||||
UpdateChannelRequest::~UpdateChannelRequest()
|
||||
{}
|
||||
|
||||
long UpdateChannelRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UpdateChannelRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long UpdateChannelRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
@@ -33,7 +44,7 @@ long UpdateChannelRequest::getCallerParentId()const
|
||||
void UpdateChannelRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool UpdateChannelRequest::getProxy_original_security_transport()const
|
||||
@@ -44,7 +55,7 @@ bool UpdateChannelRequest::getProxy_original_security_transport()const
|
||||
void UpdateChannelRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getProxy_original_source_ip()const
|
||||
@@ -55,7 +66,7 @@ std::string UpdateChannelRequest::getProxy_original_source_ip()const
|
||||
void UpdateChannelRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getOwnerIdLoginEmail()const
|
||||
@@ -66,7 +77,7 @@ std::string UpdateChannelRequest::getOwnerIdLoginEmail()const
|
||||
void UpdateChannelRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getCallerType()const
|
||||
@@ -77,7 +88,7 @@ std::string UpdateChannelRequest::getCallerType()const
|
||||
void UpdateChannelRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getAccessKeyId()const
|
||||
@@ -88,7 +99,7 @@ std::string UpdateChannelRequest::getAccessKeyId()const
|
||||
void UpdateChannelRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getSecurityToken()const
|
||||
@@ -99,7 +110,7 @@ std::string UpdateChannelRequest::getSecurityToken()const
|
||||
void UpdateChannelRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getRequestContent()const
|
||||
@@ -110,7 +121,7 @@ std::string UpdateChannelRequest::getRequestContent()const
|
||||
void UpdateChannelRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getCallerBidEmail()const
|
||||
@@ -121,7 +132,7 @@ std::string UpdateChannelRequest::getCallerBidEmail()const
|
||||
void UpdateChannelRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getCallerUidEmail()const
|
||||
@@ -132,7 +143,7 @@ std::string UpdateChannelRequest::getCallerUidEmail()const
|
||||
void UpdateChannelRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long UpdateChannelRequest::getCallerUid()const
|
||||
@@ -143,7 +154,7 @@ long UpdateChannelRequest::getCallerUid()const
|
||||
void UpdateChannelRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getApp_ip()const
|
||||
@@ -154,7 +165,7 @@ std::string UpdateChannelRequest::getApp_ip()const
|
||||
void UpdateChannelRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getPopProduct()const
|
||||
@@ -165,18 +176,7 @@ std::string UpdateChannelRequest::getPopProduct()const
|
||||
void UpdateChannelRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void UpdateChannelRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getCallerBid()const
|
||||
@@ -187,7 +187,7 @@ std::string UpdateChannelRequest::getCallerBid()const
|
||||
void UpdateChannelRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long UpdateChannelRequest::getOwnerId()const
|
||||
@@ -198,7 +198,7 @@ long UpdateChannelRequest::getOwnerId()const
|
||||
void UpdateChannelRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getVersion()const
|
||||
@@ -209,7 +209,7 @@ std::string UpdateChannelRequest::getVersion()const
|
||||
void UpdateChannelRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getNonce()const
|
||||
@@ -220,7 +220,7 @@ std::string UpdateChannelRequest::getNonce()const
|
||||
void UpdateChannelRequest::setNonce(const std::string& nonce)
|
||||
{
|
||||
nonce_ = nonce;
|
||||
setParameter("Nonce", nonce);
|
||||
setCoreParameter("Nonce", nonce);
|
||||
}
|
||||
|
||||
bool UpdateChannelRequest::getProxy_trust_transport_info()const
|
||||
@@ -231,7 +231,7 @@ bool UpdateChannelRequest::getProxy_trust_transport_info()const
|
||||
void UpdateChannelRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UpdateChannelRequest::getAk_mfa_present()const
|
||||
@@ -242,7 +242,7 @@ bool UpdateChannelRequest::getAk_mfa_present()const
|
||||
void UpdateChannelRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UpdateChannelRequest::getSecurity_transport()const
|
||||
@@ -253,7 +253,18 @@ bool UpdateChannelRequest::getSecurity_transport()const
|
||||
void UpdateChannelRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void UpdateChannelRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setCoreParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getRequestId()const
|
||||
@@ -264,7 +275,7 @@ std::string UpdateChannelRequest::getRequestId()const
|
||||
void UpdateChannelRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getAppId()const
|
||||
@@ -275,7 +286,7 @@ std::string UpdateChannelRequest::getAppId()const
|
||||
void UpdateChannelRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string UpdateChannelRequest::getChannelId()const
|
||||
@@ -286,6 +297,6 @@ std::string UpdateChannelRequest::getChannelId()const
|
||||
void UpdateChannelRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ UpdateChannelResult::~UpdateChannelResult()
|
||||
|
||||
void UpdateChannelResult::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["Nonce"].isNull())
|
||||
nonce_ = value["Nonce"].asString();
|
||||
|
||||
@@ -37,9 +37,9 @@ void UpdateTaskParamRequest::setMixPanes(const std::vector<MixPanes>& mixPanes)
|
||||
for(int i = 0; i!= mixPanes.size(); i++) {
|
||||
auto obj = mixPanes.at(i);
|
||||
std::string str ="MixPanes."+ std::to_string(i);
|
||||
setParameter(str + ".PaneId", std::to_string(obj.paneId));
|
||||
setParameter(str + ".UserId", obj.userId);
|
||||
setParameter(str + ".SourceType", obj.sourceType);
|
||||
setCoreParameter(str + ".PaneId", std::to_string(obj.paneId));
|
||||
setCoreParameter(str + ".UserId", obj.userId);
|
||||
setCoreParameter(str + ".SourceType", obj.sourceType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ long UpdateTaskParamRequest::getCallerParentId()const
|
||||
void UpdateTaskParamRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
setCoreParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool UpdateTaskParamRequest::getProxy_original_security_transport()const
|
||||
@@ -62,7 +62,7 @@ bool UpdateTaskParamRequest::getProxy_original_security_transport()const
|
||||
void UpdateTaskParamRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getProxy_original_source_ip()const
|
||||
@@ -73,7 +73,7 @@ std::string UpdateTaskParamRequest::getProxy_original_source_ip()const
|
||||
void UpdateTaskParamRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getOwnerIdLoginEmail()const
|
||||
@@ -84,7 +84,7 @@ std::string UpdateTaskParamRequest::getOwnerIdLoginEmail()const
|
||||
void UpdateTaskParamRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getCallerType()const
|
||||
@@ -95,7 +95,7 @@ std::string UpdateTaskParamRequest::getCallerType()const
|
||||
void UpdateTaskParamRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
setCoreParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getAccessKeyId()const
|
||||
@@ -106,7 +106,7 @@ std::string UpdateTaskParamRequest::getAccessKeyId()const
|
||||
void UpdateTaskParamRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getSecurityToken()const
|
||||
@@ -117,7 +117,7 @@ std::string UpdateTaskParamRequest::getSecurityToken()const
|
||||
void UpdateTaskParamRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getRequestContent()const
|
||||
@@ -128,7 +128,7 @@ std::string UpdateTaskParamRequest::getRequestContent()const
|
||||
void UpdateTaskParamRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
setCoreParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getCallerBidEmail()const
|
||||
@@ -139,7 +139,7 @@ std::string UpdateTaskParamRequest::getCallerBidEmail()const
|
||||
void UpdateTaskParamRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
setCoreParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getCallerUidEmail()const
|
||||
@@ -150,7 +150,7 @@ std::string UpdateTaskParamRequest::getCallerUidEmail()const
|
||||
void UpdateTaskParamRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
setCoreParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long UpdateTaskParamRequest::getTaskId()const
|
||||
@@ -161,7 +161,7 @@ long UpdateTaskParamRequest::getTaskId()const
|
||||
void UpdateTaskParamRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
long UpdateTaskParamRequest::getCallerUid()const
|
||||
@@ -172,7 +172,7 @@ long UpdateTaskParamRequest::getCallerUid()const
|
||||
void UpdateTaskParamRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getApp_ip()const
|
||||
@@ -183,7 +183,7 @@ std::string UpdateTaskParamRequest::getApp_ip()const
|
||||
void UpdateTaskParamRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
setCoreParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getPopProduct()const
|
||||
@@ -194,7 +194,7 @@ std::string UpdateTaskParamRequest::getPopProduct()const
|
||||
void UpdateTaskParamRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
setCoreParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getCallerBid()const
|
||||
@@ -205,7 +205,7 @@ std::string UpdateTaskParamRequest::getCallerBid()const
|
||||
void UpdateTaskParamRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
setCoreParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long UpdateTaskParamRequest::getOwnerId()const
|
||||
@@ -216,7 +216,7 @@ long UpdateTaskParamRequest::getOwnerId()const
|
||||
void UpdateTaskParamRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long UpdateTaskParamRequest::getTemplateId()const
|
||||
@@ -227,7 +227,7 @@ long UpdateTaskParamRequest::getTemplateId()const
|
||||
void UpdateTaskParamRequest::setTemplateId(long templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setParameter("TemplateId", std::to_string(templateId));
|
||||
setCoreParameter("TemplateId", std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getVersion()const
|
||||
@@ -238,7 +238,7 @@ std::string UpdateTaskParamRequest::getVersion()const
|
||||
void UpdateTaskParamRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
setCoreParameter("Version", version);
|
||||
}
|
||||
|
||||
bool UpdateTaskParamRequest::getProxy_trust_transport_info()const
|
||||
@@ -249,7 +249,7 @@ bool UpdateTaskParamRequest::getProxy_trust_transport_info()const
|
||||
void UpdateTaskParamRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UpdateTaskParamRequest::getAk_mfa_present()const
|
||||
@@ -260,7 +260,7 @@ bool UpdateTaskParamRequest::getAk_mfa_present()const
|
||||
void UpdateTaskParamRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UpdateTaskParamRequest::getSecurity_transport()const
|
||||
@@ -271,7 +271,7 @@ bool UpdateTaskParamRequest::getSecurity_transport()const
|
||||
void UpdateTaskParamRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
setCoreParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getRequestId()const
|
||||
@@ -282,7 +282,7 @@ std::string UpdateTaskParamRequest::getRequestId()const
|
||||
void UpdateTaskParamRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
setCoreParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getAppId()const
|
||||
@@ -293,7 +293,7 @@ std::string UpdateTaskParamRequest::getAppId()const
|
||||
void UpdateTaskParamRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
setCoreParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string UpdateTaskParamRequest::getChannelId()const
|
||||
@@ -304,6 +304,6 @@ std::string UpdateTaskParamRequest::getChannelId()const
|
||||
void UpdateTaskParamRequest::setChannelId(const std::string& channelId)
|
||||
{
|
||||
channelId_ = channelId;
|
||||
setParameter("ChannelId", channelId);
|
||||
setCoreParameter("ChannelId", channelId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ UpdateTaskParamResult::~UpdateTaskParamResult()
|
||||
|
||||
void UpdateTaskParamResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
Reference in New Issue
Block a user