|
LOM2M
0.8.0
|
#include <JsonMapper.h>
Static Public Member Functions | |
| static int | mapAttributes (JsonObject jsonObj, RemoteCse *csr, int level=0, bool restCreation=false, bool mapAll=false) |
| static RemoteCse * | parseResource (JsonObject o, const String &name, Entity *targetEntity, Entity *toUpdate=nullptr) |
Provide specific mapping and parsing methods dedicated to CSR resource
|
static |
Map specific attributes of CSR resource
| jsonObj | root of the json object used to map the resource |
| csr | entity to map to a json object |
| level | of depth of mapping (in case of mapping with children resources) |
| restCreation | boolean used to avoid serializing non permitted attributes (useful for REST creation of resource) |
| mapAll | internal parameter used for full serialization of all entities |
|
static |
Parse CSR resource (will map json object to a CSR entity)
| jsonObj | root of the json object used to map the resource |
| name | of the entity (to be handled externaly) |
| resp | response primitive used to return response status code |
| targetEntity | parent of the resource to create |