@@ -33,6 +33,6 @@ std::string BatchGetJobMetricInfoRequest::getJobInfos()const
|
||||
void BatchGetJobMetricInfoRequest::setJobInfos(const std::string& jobInfos)
|
||||
{
|
||||
jobInfos_ = jobInfos;
|
||||
setParameter("JobInfos", jobInfos);
|
||||
setCoreParameter("JobInfos", jobInfos);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BatchGetJobMetricInfoResult::~BatchGetJobMetricInfoResult()
|
||||
|
||||
void BatchGetJobMetricInfoResult::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"]["Job"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string BatchGetPluginConfigInfoRequest::getPluginInfos()const
|
||||
void BatchGetPluginConfigInfoRequest::setPluginInfos(const std::string& pluginInfos)
|
||||
{
|
||||
pluginInfos_ = pluginInfos;
|
||||
setParameter("PluginInfos", pluginInfos);
|
||||
setCoreParameter("PluginInfos", pluginInfos);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ BatchGetPluginConfigInfoResult::~BatchGetPluginConfigInfoResult()
|
||||
|
||||
void BatchGetPluginConfigInfoResult::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"]["plugin"];
|
||||
for (auto value : allData)
|
||||
|
||||
@@ -33,6 +33,6 @@ std::string GetJobTopologyRequest::getJobName()const
|
||||
void GetJobTopologyRequest::setJobName(const std::string& jobName)
|
||||
{
|
||||
jobName_ = jobName;
|
||||
setParameter("JobName", jobName);
|
||||
setCoreParameter("JobName", jobName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,13 @@ GetJobTopologyResult::~GetJobTopologyResult()
|
||||
|
||||
void GetJobTopologyResult::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"]["Job"];
|
||||
for (auto value : allData)
|
||||
|
||||
Reference in New Issue
Block a user