mirror of
https://github.com/Telecominfraproject/wlan-cloud-analytics.git
synced 2026-03-20 03:39:59 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -721,4 +721,20 @@ namespace OpenWifi::SecurityObjects {
|
||||
return false;
|
||||
}
|
||||
|
||||
void ExtraSystemConfiguration::to_json(Poco::JSON::Object &Obj) const {
|
||||
field_to_json(Obj, "parameterName", parameterName);
|
||||
field_to_json(Obj, "parameterValue", parameterValue);
|
||||
}
|
||||
|
||||
bool ExtraSystemConfiguration::from_json(const Poco::JSON::Object::Ptr &Obj) {
|
||||
try {
|
||||
field_from_json(Obj, "parameterName", parameterName);
|
||||
field_from_json(Obj, "parameterValue", parameterValue);
|
||||
return true;
|
||||
} catch (...) {
|
||||
std::cout << "Cannot parse: Token" << std::endl;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace OpenWifi::SecurityObjects
|
||||
|
||||
Reference in New Issue
Block a user