RiotNet
8.0.0
A C#/.NET client for the Riot Games API.
|
Converts a range in JSON to a consistent CLR format. More...
Public Member Functions | |
override bool | CanConvert (Type objectType) |
Determines whether this instance can convert the specified object type. More... | |
override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
Reads the JSON representation of the ranges. More... | |
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
Writes the JSON representation of the ranges. More... | |
Converts a range in JSON to a consistent CLR format.
A range value from the Riot Games API could be a list of integers, or the string "self". We want to convert the string "self" to an array containing a single zero.
|
inline |
Determines whether this instance can convert the specified object type.
objectType | The type to convert. |
if this converter can convert the specified type; otherwise
false
.
|
inline |
Reads the JSON representation of the ranges.
reader | The JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
|
inline |
Writes the JSON representation of the ranges.
writer | The JsonWriter to write to. |
value | The date to write. |
serializer | The calling serializer. |