RiotNet  8.0.0
A C#/.NET client for the Riot Games API.
Public Member Functions | List of all members
RiotNet.Converters.EpochDateTimeConverter Class Reference

Converts a DateTime to and from JSON in epoch milliseconds format. Can also deserialize from a string in ISO format. More...

Inheritance diagram for RiotNet.Converters.EpochDateTimeConverter:

Public Member Functions

override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the date. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the date. More...
 

Detailed Description

Converts a DateTime to and from JSON in epoch milliseconds format. Can also deserialize from a string in ISO format.

Member Function Documentation

override object RiotNet.Converters.EpochDateTimeConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)
inline

Reads the JSON representation of the date.

Parameters
readerThe JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.
override void RiotNet.Converters.EpochDateTimeConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)
inline

Writes the JSON representation of the date.

Parameters
writerThe JsonWriter to write to.
valueThe date to write.
serializerThe calling serializer.

The documentation for this class was generated from the following file: