@@ -25,17 +25,6 @@ OnsConsumerAccumulateRequest::OnsConsumerAccumulateRequest() :
|
||||
OnsConsumerAccumulateRequest::~OnsConsumerAccumulateRequest()
|
||||
{}
|
||||
|
||||
long OnsConsumerAccumulateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsConsumerAccumulateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsConsumerAccumulateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsConsumerAccumulateResult::~OnsConsumerAccumulateResult()
|
||||
|
||||
void OnsConsumerAccumulateResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Online"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsConsumerGetConnectionRequest::OnsConsumerGetConnectionRequest() :
|
||||
OnsConsumerGetConnectionRequest::~OnsConsumerGetConnectionRequest()
|
||||
{}
|
||||
|
||||
long OnsConsumerGetConnectionRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsConsumerGetConnectionRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsConsumerGetConnectionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsConsumerGetConnectionResult::~OnsConsumerGetConnectionResult()
|
||||
|
||||
void OnsConsumerGetConnectionResult::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 dataNode = value["Data"];
|
||||
auto allConnectionList = value["ConnectionList"]["ConnectionDo"];
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsConsumerResetOffsetRequest::OnsConsumerResetOffsetRequest() :
|
||||
OnsConsumerResetOffsetRequest::~OnsConsumerResetOffsetRequest()
|
||||
{}
|
||||
|
||||
long OnsConsumerResetOffsetRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsConsumerResetOffsetRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsConsumerResetOffsetRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsConsumerResetOffsetResult::~OnsConsumerResetOffsetResult()
|
||||
|
||||
void OnsConsumerResetOffsetResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsConsumerStatusRequest::OnsConsumerStatusRequest() :
|
||||
OnsConsumerStatusRequest::~OnsConsumerStatusRequest()
|
||||
{}
|
||||
|
||||
long OnsConsumerStatusRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsConsumerStatusRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsConsumerStatusRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsConsumerStatusResult::~OnsConsumerStatusResult()
|
||||
|
||||
void OnsConsumerStatusResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Online"].isNull())
|
||||
@@ -71,6 +74,8 @@ void OnsConsumerStatusResult::parse(const std::string &payload)
|
||||
connectionDoObject.language = value["Language"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
connectionDoObject.version = value["Version"].asString();
|
||||
if(!value["RemoteIP"].isNull())
|
||||
connectionDoObject.remoteIP = value["RemoteIP"].asString();
|
||||
data_.connectionSet.push_back(connectionDoObject);
|
||||
}
|
||||
auto allDetailInTopicList = value["DetailInTopicList"]["DetailInTopicDo"];
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsConsumerTimeSpanRequest::OnsConsumerTimeSpanRequest() :
|
||||
OnsConsumerTimeSpanRequest::~OnsConsumerTimeSpanRequest()
|
||||
{}
|
||||
|
||||
long OnsConsumerTimeSpanRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsConsumerTimeSpanRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsConsumerTimeSpanRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsConsumerTimeSpanResult::~OnsConsumerTimeSpanResult()
|
||||
|
||||
void OnsConsumerTimeSpanResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Topic"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsDLQMessageGetByIdRequest::OnsDLQMessageGetByIdRequest() :
|
||||
OnsDLQMessageGetByIdRequest::~OnsDLQMessageGetByIdRequest()
|
||||
{}
|
||||
|
||||
long OnsDLQMessageGetByIdRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsDLQMessageGetByIdRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsDLQMessageGetByIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsDLQMessageGetByIdResult::~OnsDLQMessageGetByIdResult()
|
||||
|
||||
void OnsDLQMessageGetByIdResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Topic"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsDLQMessagePageQueryByGroupIdRequest::OnsDLQMessagePageQueryByGroupIdRequest()
|
||||
OnsDLQMessagePageQueryByGroupIdRequest::~OnsDLQMessagePageQueryByGroupIdRequest()
|
||||
{}
|
||||
|
||||
long OnsDLQMessagePageQueryByGroupIdRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsDLQMessagePageQueryByGroupIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsDLQMessagePageQueryByGroupIdResult::~OnsDLQMessagePageQueryByGroupIdResult()
|
||||
|
||||
void OnsDLQMessagePageQueryByGroupIdResult::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 msgFoundDoNode = value["MsgFoundDo"];
|
||||
if(!msgFoundDoNode["TaskId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsDLQMessageResendByIdRequest::OnsDLQMessageResendByIdRequest() :
|
||||
OnsDLQMessageResendByIdRequest::~OnsDLQMessageResendByIdRequest()
|
||||
{}
|
||||
|
||||
long OnsDLQMessageResendByIdRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsDLQMessageResendByIdRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsDLQMessageResendByIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsDLQMessageResendByIdResult::~OnsDLQMessageResendByIdResult()
|
||||
|
||||
void OnsDLQMessageResendByIdResult::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 allData = value["Data"]["MsgId"];
|
||||
for (const auto &item : allData)
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsGroupConsumerUpdateRequest::OnsGroupConsumerUpdateRequest() :
|
||||
OnsGroupConsumerUpdateRequest::~OnsGroupConsumerUpdateRequest()
|
||||
{}
|
||||
|
||||
long OnsGroupConsumerUpdateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsGroupConsumerUpdateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
bool OnsGroupConsumerUpdateRequest::getReadEnable()const
|
||||
{
|
||||
return readEnable_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsGroupConsumerUpdateResult::~OnsGroupConsumerUpdateResult()
|
||||
|
||||
void OnsGroupConsumerUpdateResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsGroupCreateRequest::OnsGroupCreateRequest() :
|
||||
OnsGroupCreateRequest::~OnsGroupCreateRequest()
|
||||
{}
|
||||
|
||||
long OnsGroupCreateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsGroupCreateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsGroupCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsGroupCreateResult::~OnsGroupCreateResult()
|
||||
|
||||
void OnsGroupCreateResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsGroupDeleteRequest::OnsGroupDeleteRequest() :
|
||||
OnsGroupDeleteRequest::~OnsGroupDeleteRequest()
|
||||
{}
|
||||
|
||||
long OnsGroupDeleteRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsGroupDeleteRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsGroupDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsGroupDeleteResult::~OnsGroupDeleteResult()
|
||||
|
||||
void OnsGroupDeleteResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsGroupListRequest::OnsGroupListRequest() :
|
||||
OnsGroupListRequest::~OnsGroupListRequest()
|
||||
{}
|
||||
|
||||
long OnsGroupListRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsGroupListRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsGroupListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsGroupListResult::~OnsGroupListResult()
|
||||
|
||||
void OnsGroupListResult::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 allData = value["Data"]["SubscribeInfoDo"];
|
||||
for (auto value : allData)
|
||||
@@ -56,6 +59,8 @@ void OnsGroupListResult::parse(const std::string &payload)
|
||||
dataObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["IndependentNaming"].isNull())
|
||||
dataObject.independentNaming = value["IndependentNaming"].asString() == "true";
|
||||
if(!value["CreateTime"].isNull())
|
||||
dataObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HelpUrl"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsGroupSubDetailRequest::OnsGroupSubDetailRequest() :
|
||||
OnsGroupSubDetailRequest::~OnsGroupSubDetailRequest()
|
||||
{}
|
||||
|
||||
long OnsGroupSubDetailRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsGroupSubDetailRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsGroupSubDetailRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsGroupSubDetailResult::~OnsGroupSubDetailResult()
|
||||
|
||||
void OnsGroupSubDetailResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["GroupId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsInstanceBaseInfoRequest::OnsInstanceBaseInfoRequest() :
|
||||
OnsInstanceBaseInfoRequest::~OnsInstanceBaseInfoRequest()
|
||||
{}
|
||||
|
||||
long OnsInstanceBaseInfoRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsInstanceBaseInfoRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsInstanceBaseInfoRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsInstanceBaseInfoResult::~OnsInstanceBaseInfoResult()
|
||||
|
||||
void OnsInstanceBaseInfoResult::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 instanceBaseInfoNode = value["InstanceBaseInfo"];
|
||||
if(!instanceBaseInfoNode["InstanceId"].isNull())
|
||||
@@ -53,6 +56,8 @@ void OnsInstanceBaseInfoResult::parse(const std::string &payload)
|
||||
instanceBaseInfo_.instanceName = instanceBaseInfoNode["InstanceName"].asString();
|
||||
if(!instanceBaseInfoNode["IndependentNaming"].isNull())
|
||||
instanceBaseInfo_.independentNaming = instanceBaseInfoNode["IndependentNaming"].asString() == "true";
|
||||
if(!instanceBaseInfoNode["Remark"].isNull())
|
||||
instanceBaseInfo_.remark = instanceBaseInfoNode["Remark"].asString();
|
||||
auto endpointsNode = instanceBaseInfoNode["Endpoints"];
|
||||
if(!endpointsNode["TcpEndpoint"].isNull())
|
||||
instanceBaseInfo_.endpoints.tcpEndpoint = endpointsNode["TcpEndpoint"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsInstanceCreateRequest::OnsInstanceCreateRequest() :
|
||||
OnsInstanceCreateRequest::~OnsInstanceCreateRequest()
|
||||
{}
|
||||
|
||||
long OnsInstanceCreateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsInstanceCreateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsInstanceCreateRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsInstanceCreateResult::~OnsInstanceCreateResult()
|
||||
|
||||
void OnsInstanceCreateResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsInstanceDeleteRequest::OnsInstanceDeleteRequest() :
|
||||
OnsInstanceDeleteRequest::~OnsInstanceDeleteRequest()
|
||||
{}
|
||||
|
||||
long OnsInstanceDeleteRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsInstanceDeleteRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsInstanceDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsInstanceDeleteResult::~OnsInstanceDeleteResult()
|
||||
|
||||
void OnsInstanceDeleteResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,14 +25,3 @@ OnsInstanceInServiceListRequest::OnsInstanceInServiceListRequest() :
|
||||
OnsInstanceInServiceListRequest::~OnsInstanceInServiceListRequest()
|
||||
{}
|
||||
|
||||
long OnsInstanceInServiceListRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsInstanceInServiceListRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsInstanceInServiceListResult::~OnsInstanceInServiceListResult()
|
||||
|
||||
void OnsInstanceInServiceListResult::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 allData = value["Data"]["InstanceVO"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsInstanceUpdateRequest::OnsInstanceUpdateRequest() :
|
||||
OnsInstanceUpdateRequest::~OnsInstanceUpdateRequest()
|
||||
{}
|
||||
|
||||
long OnsInstanceUpdateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsInstanceUpdateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsInstanceUpdateRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsInstanceUpdateResult::~OnsInstanceUpdateResult()
|
||||
|
||||
void OnsInstanceUpdateResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMessageGetByKeyRequest::OnsMessageGetByKeyRequest() :
|
||||
OnsMessageGetByKeyRequest::~OnsMessageGetByKeyRequest()
|
||||
{}
|
||||
|
||||
long OnsMessageGetByKeyRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMessageGetByKeyRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMessageGetByKeyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMessageGetByKeyResult::~OnsMessageGetByKeyResult()
|
||||
|
||||
void OnsMessageGetByKeyResult::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 allData = value["Data"]["OnsRestMessageDo"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMessageGetByMsgIdRequest::OnsMessageGetByMsgIdRequest() :
|
||||
OnsMessageGetByMsgIdRequest::~OnsMessageGetByMsgIdRequest()
|
||||
{}
|
||||
|
||||
long OnsMessageGetByMsgIdRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMessageGetByMsgIdRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMessageGetByMsgIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMessageGetByMsgIdResult::~OnsMessageGetByMsgIdResult()
|
||||
|
||||
void OnsMessageGetByMsgIdResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Topic"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMessagePageQueryByTopicRequest::OnsMessagePageQueryByTopicRequest() :
|
||||
OnsMessagePageQueryByTopicRequest::~OnsMessagePageQueryByTopicRequest()
|
||||
{}
|
||||
|
||||
long OnsMessagePageQueryByTopicRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMessagePageQueryByTopicRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMessagePageQueryByTopicRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMessagePageQueryByTopicResult::~OnsMessagePageQueryByTopicResult()
|
||||
|
||||
void OnsMessagePageQueryByTopicResult::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 msgFoundDoNode = value["MsgFoundDo"];
|
||||
if(!msgFoundDoNode["TaskId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMessagePushRequest::OnsMessagePushRequest() :
|
||||
OnsMessagePushRequest::~OnsMessagePushRequest()
|
||||
{}
|
||||
|
||||
long OnsMessagePushRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMessagePushRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMessagePushRequest::getClientId()const
|
||||
{
|
||||
return clientId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMessagePushResult::~OnsMessagePushResult()
|
||||
|
||||
void OnsMessagePushResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMessageSendRequest::OnsMessageSendRequest() :
|
||||
OnsMessageSendRequest::~OnsMessageSendRequest()
|
||||
{}
|
||||
|
||||
long OnsMessageSendRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMessageSendRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMessageSendRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMessageSendResult::~OnsMessageSendResult()
|
||||
|
||||
void OnsMessageSendResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMessageTraceRequest::OnsMessageTraceRequest() :
|
||||
OnsMessageTraceRequest::~OnsMessageTraceRequest()
|
||||
{}
|
||||
|
||||
long OnsMessageTraceRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMessageTraceRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMessageTraceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMessageTraceResult::~OnsMessageTraceResult()
|
||||
|
||||
void OnsMessageTraceResult::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 allData = value["Data"]["MessageTrack"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttGroupIdCreateRequest::OnsMqttGroupIdCreateRequest() :
|
||||
OnsMqttGroupIdCreateRequest::~OnsMqttGroupIdCreateRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttGroupIdCreateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttGroupIdCreateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttGroupIdCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttGroupIdCreateResult::~OnsMqttGroupIdCreateResult()
|
||||
|
||||
void OnsMqttGroupIdCreateResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttGroupIdDeleteRequest::OnsMqttGroupIdDeleteRequest() :
|
||||
OnsMqttGroupIdDeleteRequest::~OnsMqttGroupIdDeleteRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttGroupIdDeleteRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttGroupIdDeleteRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttGroupIdDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttGroupIdDeleteResult::~OnsMqttGroupIdDeleteResult()
|
||||
|
||||
void OnsMqttGroupIdDeleteResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttGroupIdListRequest::OnsMqttGroupIdListRequest() :
|
||||
OnsMqttGroupIdListRequest::~OnsMqttGroupIdListRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttGroupIdListRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttGroupIdListRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttGroupIdListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttGroupIdListResult::~OnsMqttGroupIdListResult()
|
||||
|
||||
void OnsMqttGroupIdListResult::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 allData = value["Data"]["MqttGroupIdDo"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttQueryClientByClientIdRequest::OnsMqttQueryClientByClientIdRequest() :
|
||||
OnsMqttQueryClientByClientIdRequest::~OnsMqttQueryClientByClientIdRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttQueryClientByClientIdRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttQueryClientByClientIdRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttQueryClientByClientIdRequest::getClientId()const
|
||||
{
|
||||
return clientId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttQueryClientByClientIdResult::~OnsMqttQueryClientByClientIdResult()
|
||||
|
||||
void OnsMqttQueryClientByClientIdResult::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 mqttClientInfoDoNode = value["MqttClientInfoDo"];
|
||||
if(!mqttClientInfoDoNode["Online"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttQueryClientByGroupIdRequest::OnsMqttQueryClientByGroupIdRequest() :
|
||||
OnsMqttQueryClientByGroupIdRequest::~OnsMqttQueryClientByGroupIdRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttQueryClientByGroupIdRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttQueryClientByGroupIdRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttQueryClientByGroupIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttQueryClientByGroupIdResult::~OnsMqttQueryClientByGroupIdResult()
|
||||
|
||||
void OnsMqttQueryClientByGroupIdResult::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 mqttClientSetDoNode = value["MqttClientSetDo"];
|
||||
if(!mqttClientSetDoNode["OnlineCount"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttQueryClientByTopicRequest::OnsMqttQueryClientByTopicRequest() :
|
||||
OnsMqttQueryClientByTopicRequest::~OnsMqttQueryClientByTopicRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttQueryClientByTopicRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttQueryClientByTopicRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttQueryClientByTopicRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttQueryClientByTopicResult::~OnsMqttQueryClientByTopicResult()
|
||||
|
||||
void OnsMqttQueryClientByTopicResult::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 mqttClientSetDoNode = value["MqttClientSetDo"];
|
||||
if(!mqttClientSetDoNode["OnlineCount"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttQueryHistoryOnlineRequest::OnsMqttQueryHistoryOnlineRequest() :
|
||||
OnsMqttQueryHistoryOnlineRequest::~OnsMqttQueryHistoryOnlineRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttQueryHistoryOnlineRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttQueryHistoryOnlineRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttQueryHistoryOnlineRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttQueryHistoryOnlineResult::~OnsMqttQueryHistoryOnlineResult()
|
||||
|
||||
void OnsMqttQueryHistoryOnlineResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Title"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsMqttQueryMsgTransTrendRequest::OnsMqttQueryMsgTransTrendRequest() :
|
||||
OnsMqttQueryMsgTransTrendRequest::~OnsMqttQueryMsgTransTrendRequest()
|
||||
{}
|
||||
|
||||
long OnsMqttQueryMsgTransTrendRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsMqttQueryMsgTransTrendRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsMqttQueryMsgTransTrendRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsMqttQueryMsgTransTrendResult::~OnsMqttQueryMsgTransTrendResult()
|
||||
|
||||
void OnsMqttQueryMsgTransTrendResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Title"].isNull())
|
||||
|
||||
@@ -25,14 +25,3 @@ OnsRegionListRequest::OnsRegionListRequest() :
|
||||
OnsRegionListRequest::~OnsRegionListRequest()
|
||||
{}
|
||||
|
||||
long OnsRegionListRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsRegionListRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsRegionListResult::~OnsRegionListResult()
|
||||
|
||||
void OnsRegionListResult::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 allData = value["Data"]["RegionDo"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTopicCreateRequest::OnsTopicCreateRequest() :
|
||||
OnsTopicCreateRequest::~OnsTopicCreateRequest()
|
||||
{}
|
||||
|
||||
long OnsTopicCreateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTopicCreateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTopicCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTopicCreateResult::~OnsTopicCreateResult()
|
||||
|
||||
void OnsTopicCreateResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTopicDeleteRequest::OnsTopicDeleteRequest() :
|
||||
OnsTopicDeleteRequest::~OnsTopicDeleteRequest()
|
||||
{}
|
||||
|
||||
long OnsTopicDeleteRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTopicDeleteRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTopicDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTopicDeleteResult::~OnsTopicDeleteResult()
|
||||
|
||||
void OnsTopicDeleteResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTopicListRequest::OnsTopicListRequest() :
|
||||
OnsTopicListRequest::~OnsTopicListRequest()
|
||||
{}
|
||||
|
||||
long OnsTopicListRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTopicListRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTopicListRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTopicListResult::~OnsTopicListResult()
|
||||
|
||||
void OnsTopicListResult::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 allData = value["Data"]["PublishInfoDo"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTopicStatusRequest::OnsTopicStatusRequest() :
|
||||
OnsTopicStatusRequest::~OnsTopicStatusRequest()
|
||||
{}
|
||||
|
||||
long OnsTopicStatusRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTopicStatusRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTopicStatusRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTopicStatusResult::~OnsTopicStatusResult()
|
||||
|
||||
void OnsTopicStatusResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTopicSubDetailRequest::OnsTopicSubDetailRequest() :
|
||||
OnsTopicSubDetailRequest::~OnsTopicSubDetailRequest()
|
||||
{}
|
||||
|
||||
long OnsTopicSubDetailRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTopicSubDetailRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTopicSubDetailRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTopicSubDetailResult::~OnsTopicSubDetailResult()
|
||||
|
||||
void OnsTopicSubDetailResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Topic"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTopicUpdateRequest::OnsTopicUpdateRequest() :
|
||||
OnsTopicUpdateRequest::~OnsTopicUpdateRequest()
|
||||
{}
|
||||
|
||||
long OnsTopicUpdateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTopicUpdateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTopicUpdateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTopicUpdateResult::~OnsTopicUpdateResult()
|
||||
|
||||
void OnsTopicUpdateResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTraceGetResultRequest::OnsTraceGetResultRequest() :
|
||||
OnsTraceGetResultRequest::~OnsTraceGetResultRequest()
|
||||
{}
|
||||
|
||||
long OnsTraceGetResultRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTraceGetResultRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTraceGetResultRequest::getQueryId()const
|
||||
{
|
||||
return queryId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTraceGetResultResult::~OnsTraceGetResultResult()
|
||||
|
||||
void OnsTraceGetResultResult::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 traceDataNode = value["TraceData"];
|
||||
if(!traceDataNode["QueryId"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTraceQueryByMsgIdRequest::OnsTraceQueryByMsgIdRequest() :
|
||||
OnsTraceQueryByMsgIdRequest::~OnsTraceQueryByMsgIdRequest()
|
||||
{}
|
||||
|
||||
long OnsTraceQueryByMsgIdRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgIdRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTraceQueryByMsgIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTraceQueryByMsgIdResult::~OnsTraceQueryByMsgIdResult()
|
||||
|
||||
void OnsTraceQueryByMsgIdResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTraceQueryByMsgKeyRequest::OnsTraceQueryByMsgKeyRequest() :
|
||||
OnsTraceQueryByMsgKeyRequest::~OnsTraceQueryByMsgKeyRequest()
|
||||
{}
|
||||
|
||||
long OnsTraceQueryByMsgKeyRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTraceQueryByMsgKeyRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsTraceQueryByMsgKeyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTraceQueryByMsgKeyResult::~OnsTraceQueryByMsgKeyResult()
|
||||
|
||||
void OnsTraceQueryByMsgKeyResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTrendGroupOutputTpsRequest::OnsTrendGroupOutputTpsRequest() :
|
||||
OnsTrendGroupOutputTpsRequest::~OnsTrendGroupOutputTpsRequest()
|
||||
{}
|
||||
|
||||
long OnsTrendGroupOutputTpsRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTrendGroupOutputTpsRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
long OnsTrendGroupOutputTpsRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTrendGroupOutputTpsResult::~OnsTrendGroupOutputTpsResult()
|
||||
|
||||
void OnsTrendGroupOutputTpsResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Title"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsTrendTopicInputTpsRequest::OnsTrendTopicInputTpsRequest() :
|
||||
OnsTrendTopicInputTpsRequest::~OnsTrendTopicInputTpsRequest()
|
||||
{}
|
||||
|
||||
long OnsTrendTopicInputTpsRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsTrendTopicInputTpsRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
long OnsTrendTopicInputTpsRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsTrendTopicInputTpsResult::~OnsTrendTopicInputTpsResult()
|
||||
|
||||
void OnsTrendTopicInputTpsResult::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 dataNode = value["Data"];
|
||||
if(!dataNode["Title"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsWarnCreateRequest::OnsWarnCreateRequest() :
|
||||
OnsWarnCreateRequest::~OnsWarnCreateRequest()
|
||||
{}
|
||||
|
||||
long OnsWarnCreateRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsWarnCreateRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsWarnCreateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsWarnCreateResult::~OnsWarnCreateResult()
|
||||
|
||||
void OnsWarnCreateResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ OnsWarnDeleteRequest::OnsWarnDeleteRequest() :
|
||||
OnsWarnDeleteRequest::~OnsWarnDeleteRequest()
|
||||
{}
|
||||
|
||||
long OnsWarnDeleteRequest::getPreventCache()const
|
||||
{
|
||||
return preventCache_;
|
||||
}
|
||||
|
||||
void OnsWarnDeleteRequest::setPreventCache(long preventCache)
|
||||
{
|
||||
preventCache_ = preventCache;
|
||||
setCoreParameter("PreventCache", std::to_string(preventCache));
|
||||
}
|
||||
|
||||
std::string OnsWarnDeleteRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
|
||||
@@ -35,10 +35,13 @@ OnsWarnDeleteResult::~OnsWarnDeleteResult()
|
||||
|
||||
void OnsWarnDeleteResult::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["HelpUrl"].isNull())
|
||||
helpUrl_ = value["HelpUrl"].asString();
|
||||
|
||||
Reference in New Issue
Block a user