Converts a TimeSpan to and from a number of seconds in JSON.
More...
|
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 time span. More...
|
|
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
| Writes the JSON representation of the time span. More...
|
|
Converts a TimeSpan to and from a number of seconds in JSON.
override bool RiotNet.Converters.MillisecondsToTimeSpanConverter.CanConvert |
( |
Type |
objectType | ) |
|
|
inline |
Determines whether this instance can convert the specified object type.
- Parameters
-
objectType | The type to convert. |
- Returns
- true
if this converter can convert the specified type; otherwise
false
.
override object RiotNet.Converters.MillisecondsToTimeSpanConverter.ReadJson |
( |
JsonReader |
reader, |
|
|
Type |
objectType, |
|
|
object |
existingValue, |
|
|
JsonSerializer |
serializer |
|
) |
| |
|
inline |
Reads the JSON representation of the time span.
- Parameters
-
reader | The JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
- Returns
- The object value.
override void RiotNet.Converters.MillisecondsToTimeSpanConverter.WriteJson |
( |
JsonWriter |
writer, |
|
|
object |
value, |
|
|
JsonSerializer |
serializer |
|
) |
| |
|
inline |
Writes the JSON representation of the time span.
- Parameters
-
writer | The JsonWriter to write to. |
value | The date to write. |
serializer | The calling serializer. |
The documentation for this class was generated from the following file:
- Converters/MillisecondsToTimespanConverter.cs