![]() |
NuxeoDotNetClient
1.0.0 beta
.NET Client for Nuxeo Automation and REST API
|
This object is responsible for the conversions between JSON objects received from the Nuxeo server and C# Nuxeo Objects. More...
Public Member Functions | |
| Marshaller (Client client) | |
| Initializes a new instance of Marshaller. More... | |
| void | RegisterBO (string adapterType, Type objectType) |
| Registers a business object type in the marshaller. More... | |
| Entity | UnMarshal (JToken json) |
| Unmarshals a JSON object into a nuxeo Entity. More... | |
| JObject | Marshal (Entity entity) |
| Marshals a nuxeo Entity to JSON. More... | |
This object is responsible for the conversions between JSON objects received from the Nuxeo server and C# Nuxeo Objects.
Definition at line 30 of file Marshaller.cs.
| NuxeoClient.Marshaller.Marshaller | ( | Client | client | ) |
Initializes a new instance of Marshaller.
| client | The client throw which objects are received and sent through. |
Definition at line 39 of file Marshaller.cs.
| JObject NuxeoClient.Marshaller.Marshal | ( | Entity | entity | ) |
Marshals a nuxeo Entity to JSON.
| entity | The Entity to be marshalled. |
Implements NuxeoClient.IMarshaller.
Definition at line 90 of file Marshaller.cs.
| void NuxeoClient.Marshaller.RegisterBO | ( | string | adapterType, |
| 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. |
Implements NuxeoClient.IMarshaller.
Definition at line 52 of file Marshaller.cs.
| Entity NuxeoClient.Marshaller.UnMarshal | ( | JToken | json | ) |
Unmarshals a JSON object into a nuxeo Entity.
| json | The JSON object to be unmarshalled. |
Implements NuxeoClient.IMarshaller.
Definition at line 62 of file Marshaller.cs.
1.8.10