Class QueriedConverter<T>
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Glitch9.IO.Networking.RESTApi
Assembly: Glitch9.IO.dll
Syntax
public class QueriedConverter<T> : JsonConverter<Queried<T>>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Edit this page View SourceQueriedConverter(string)
Declaration
public QueriedConverter(string dataPropertyName = "data")
Parameters
| Type | Name | Description |
|---|---|---|
| string | dataPropertyName |
Methods
| Edit this page View SourceReadJson(JsonReader, Type, Queried<T>, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override Queried<T> ReadJson(JsonReader reader, Type objectType, Queried<T> existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| Queried<T> | existingValue | The existing value of object being read. If there is no existing value then |
| bool | hasExistingValue | The existing value has a value. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| Queried<T> | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, Queried<T>, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, Queried<T> value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| Queried<T> | value | The value. |
| JsonSerializer | serializer | The calling serializer. |