mirror of
https://github.com/Telecominfraproject/wlan-cloud-userportal.git
synced 2025-10-30 02:02:19 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
project(owsub VERSION 3.0.0)
|
project(owsub VERSION 3.1.0)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
|
|||||||
@@ -587,6 +587,9 @@ namespace OpenWifi::ProvObjects {
|
|||||||
field_to_json(Obj, "locale", locale);
|
field_to_json(Obj, "locale", locale);
|
||||||
field_to_json(Obj, "realMacAddress", realMacAddress);
|
field_to_json(Obj, "realMacAddress", realMacAddress);
|
||||||
field_to_json(Obj, "doNotAllowOverrides", doNotAllowOverrides);
|
field_to_json(Obj, "doNotAllowOverrides", doNotAllowOverrides);
|
||||||
|
field_to_json(Obj, "imported", imported);
|
||||||
|
field_to_json(Obj, "connected", connected);
|
||||||
|
field_to_json(Obj, "platform", platform);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InventoryTag::from_json(const Poco::JSON::Object::Ptr &Obj) {
|
bool InventoryTag::from_json(const Poco::JSON::Object::Ptr &Obj) {
|
||||||
@@ -609,6 +612,9 @@ namespace OpenWifi::ProvObjects {
|
|||||||
field_from_json(Obj, "locale", locale);
|
field_from_json(Obj, "locale", locale);
|
||||||
field_from_json(Obj, "realMacAddress", realMacAddress);
|
field_from_json(Obj, "realMacAddress", realMacAddress);
|
||||||
field_from_json(Obj, "doNotAllowOverrides", doNotAllowOverrides);
|
field_from_json(Obj, "doNotAllowOverrides", doNotAllowOverrides);
|
||||||
|
field_from_json(Obj, "imported", imported);
|
||||||
|
field_from_json(Obj, "connected", connected);
|
||||||
|
field_from_json(Obj, "platform", platform);
|
||||||
return true;
|
return true;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -490,9 +490,11 @@ namespace OpenWifi::ProvObjects {
|
|||||||
std::string locale;
|
std::string locale;
|
||||||
std::string realMacAddress;
|
std::string realMacAddress;
|
||||||
bool doNotAllowOverrides = false;
|
bool doNotAllowOverrides = false;
|
||||||
|
std::uint64_t imported=0;
|
||||||
|
std::uint64_t connected=0;
|
||||||
|
std::string platform{"AP"};
|
||||||
|
|
||||||
void to_json(Poco::JSON::Object &Obj) const;
|
void to_json(Poco::JSON::Object &Obj) const;
|
||||||
|
|
||||||
bool from_json(const Poco::JSON::Object::Ptr &Obj);
|
bool from_json(const Poco::JSON::Object::Ptr &Obj);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user