mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 18:57:51 +00:00 
			
		
		
		
	Framework update.
This commit is contained in:
		| @@ -690,16 +690,16 @@ namespace OpenWifi::ProvObjects { | ||||
|         info.to_json(Obj); | ||||
|         field_to_json( Obj,"managementPolicy",managementPolicy); | ||||
|         field_to_json( Obj,"deviceTypes",deviceTypes); | ||||
|         field_to_json( Obj,"configuration",configuration); | ||||
|         field_to_json( Obj,"inUse",inUse); | ||||
|         field_to_json( Obj,"variables",variables); | ||||
|         field_to_json( Obj,"rrm",rrm); | ||||
|         field_to_json( Obj,"firmwareUpgrade",firmwareUpgrade); | ||||
|         field_to_json( Obj,"firmwareRCOnly",firmwareRCOnly); | ||||
|         field_to_json( Obj,"subscriberOnly",subscriberOnly); | ||||
|         field_to_json( Obj,"entity", entity); | ||||
|         field_to_json( Obj,"venue", venue); | ||||
|         field_to_json( Obj,"subscriber", subscriber); | ||||
|         field_to_json( Obj,"configuration",configuration); | ||||
|         field_to_json( Obj,"inUse",inUse); | ||||
|         field_to_json( Obj,"variables",variables); | ||||
|         field_to_json( Obj,"rrm",rrm); | ||||
|     } | ||||
|  | ||||
|     bool DeviceConfiguration::from_json(const Poco::JSON::Object::Ptr &Obj) { | ||||
| @@ -707,16 +707,16 @@ namespace OpenWifi::ProvObjects { | ||||
|             info.from_json(Obj); | ||||
|             field_from_json( Obj,"managementPolicy",managementPolicy); | ||||
|             field_from_json( Obj,"deviceTypes",deviceTypes); | ||||
|             field_from_json( Obj,"configuration",configuration); | ||||
|             field_from_json( Obj,"inUse",inUse); | ||||
|             field_from_json( Obj,"variables",variables); | ||||
|             field_from_json( Obj,"rrm",rrm); | ||||
|             field_from_json( Obj,"firmwareUpgrade",firmwareUpgrade); | ||||
|             field_from_json( Obj,"firmwareRCOnly",firmwareRCOnly); | ||||
|             field_from_json( Obj,"subscriberOnly",subscriberOnly); | ||||
|             field_from_json( Obj,"entity", entity); | ||||
|             field_from_json( Obj,"venue", venue); | ||||
|             field_from_json( Obj,"subscriber", subscriber); | ||||
|             field_from_json( Obj,"configuration",configuration); | ||||
|             field_from_json( Obj,"rrm",rrm); | ||||
|             field_from_json( Obj,"firmwareUpgrade",firmwareUpgrade); | ||||
|             field_from_json( Obj,"firmwareRCOnly",firmwareRCOnly); | ||||
|             return true; | ||||
|         } catch(...) { | ||||
|  | ||||
| @@ -996,6 +996,26 @@ namespace OpenWifi::ProvObjects { | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
|     void CompleteDeviceConfiguration::to_json(Poco::JSON::Object &Obj) const { | ||||
|         field_to_json( Obj,"configuration", configuration); | ||||
|         field_to_json( Obj,"rrm", rrm); | ||||
|         field_to_json( Obj,"firmwareRCOnly", firmwareRCOnly); | ||||
|         field_to_json( Obj,"firmwareUpgrade", firmwareUpgrade); | ||||
|     } | ||||
|  | ||||
|     bool CompleteDeviceConfiguration::from_json(const Poco::JSON::Object::Ptr &Obj) { | ||||
|         try { | ||||
|             field_from_json( Obj,"configuration", configuration); | ||||
|             field_from_json( Obj,"rrm", rrm); | ||||
|             field_from_json( Obj,"firmwareRCOnly", firmwareRCOnly); | ||||
|             field_from_json( Obj,"firmwareUpgrade", firmwareUpgrade); | ||||
|             return true; | ||||
|         } catch(...) { | ||||
|  | ||||
|         } | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
|     void SubscriberDevice::to_json(Poco::JSON::Object &Obj) const { | ||||
|         info.to_json(Obj); | ||||
|         field_to_json( Obj,"serialNumber", serialNumber); | ||||
| @@ -1017,7 +1037,6 @@ namespace OpenWifi::ProvObjects { | ||||
|         field_to_json( Obj,"realMacAddress", realMacAddress); | ||||
|         field_to_json( Obj,"firmwareRCOnly", firmwareRCOnly); | ||||
|         field_to_json( Obj,"firmwareUpgrade", firmwareUpgrade); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     bool SubscriberDevice::from_json(const Poco::JSON::Object::Ptr &Obj) { | ||||
| @@ -1138,8 +1157,8 @@ namespace OpenWifi::ProvObjects { | ||||
|         field_to_json(Obj,"title",title); | ||||
|         field_to_json(Obj,"type",type); | ||||
|         field_to_json(Obj,"success",success); | ||||
|         field_to_json(Obj,"errors",errors); | ||||
|         field_to_json(Obj,"warnings",warnings); | ||||
|         field_to_json(Obj,"error",error); | ||||
|         field_to_json(Obj,"warning",warning); | ||||
|         field_to_json(Obj,"timeStamp",timeStamp); | ||||
|         field_to_json(Obj,"details",details); | ||||
|     } | ||||
| @@ -1149,8 +1168,8 @@ namespace OpenWifi::ProvObjects { | ||||
|             field_from_json(Obj,"title",title); | ||||
|             field_from_json(Obj,"type",type); | ||||
|             field_from_json(Obj,"success",success); | ||||
|             field_from_json(Obj,"errors",errors); | ||||
|             field_from_json(Obj,"warnings",warnings); | ||||
|             field_from_json(Obj,"error",error); | ||||
|             field_from_json(Obj,"warning",warning); | ||||
|             field_from_json(Obj,"timeStamp",timeStamp); | ||||
|             field_from_json(Obj,"details",details); | ||||
|             return true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959