NuxeoDotNetClient
1.0.0 beta
.NET Client for Nuxeo Automation and REST API
|
Defines methods to marshal and unmarshal nuxeo object to and from JSON. More...
Public Member Functions | |
void | RegisterBO (string entityType, Type objectType) |
Registers a business object type in the marshaller. More... | |
JObject | Marshal (Entity entity) |
Marshals a nuxeo Entity to JSON. More... | |
Entity | UnMarshal (JToken json) |
Unmarshals a JSON object into a nuxeo Entity. More... | |
Defines methods to marshal and unmarshal nuxeo object to and from JSON.
Definition at line 27 of file IMarshaller.cs.
JObject NuxeoClient.IMarshaller.Marshal | ( | Entity | entity | ) |
Marshals a nuxeo Entity to JSON.
entity | The Entity to be marshalled. |
Implemented in NuxeoClient.Marshaller.
void NuxeoClient.IMarshaller.RegisterBO | ( | string | entityType, |
Type | objectType | ||
) |
Registers a business object type in the marshaller.
Registering a business object type in the marshaller will allow objects of this type to be marshalled and unmarshalled.
adapterType | A string with the type of the adapter for the business object |
objectType | The type of the business object. |
Implemented in NuxeoClient.Marshaller.
Entity NuxeoClient.IMarshaller.UnMarshal | ( | JToken | json | ) |
Unmarshals a JSON object into a nuxeo Entity.
json | The JSON object to be unmarshalled. |
Implemented in NuxeoClient.Marshaller.