Class SecondsUnixDateTimeOffsetConverter
- Namespace
- NetCord.JsonConverters
- Assembly
- NetCord.dll
public class SecondsUnixDateTimeOffsetConverter : JsonConverter<DateTimeOffset>
- Inheritance
-
SecondsUnixDateTimeOffsetConverter
- Inherited Members
Constructors
SecondsUnixDateTimeOffsetConverter()
public SecondsUnixDateTimeOffsetConverter()
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader
Utf8JsonReadertypeToConvert
Typeoptions
JsonSerializerOptions
Returns
Write(Utf8JsonWriter, DateTimeOffset, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWritervalue
DateTimeOffsetoptions
JsonSerializerOptions