C# Class Telegram.BotAPI.Converters.InputMessageContentConverter

Converts an InputMessageContent to or from JSON.
Inheritance: JsonConverter
Exibir arquivo Open project: Eptagone/Telegram.BotAPI

Public Methods

Method Description
Read ( Utf8JsonReader &reader, Type typeToConvert, JsonSerializerOptions options ) : InputMessageContent

Reads and converts the JSON to type InputMessageContent.

Write ( Utf8JsonWriter writer, value, JsonSerializerOptions options ) : void

Writes a InputMessageContent object as JSON.

Method Details

Read() public method

Reads and converts the JSON to type InputMessageContent.
public Read ( Utf8JsonReader &reader, Type typeToConvert, JsonSerializerOptions options ) : InputMessageContent
reader Utf8JsonReader The reader.
typeToConvert Type The type to convert.
options JsonSerializerOptions An object that specifies serialization options to use.
return InputMessageContent

Write() public method

Writes a InputMessageContent object as JSON.
public Write ( Utf8JsonWriter writer, value, JsonSerializerOptions options ) : void
writer Utf8JsonWriter The writer to write to.
value The value to convert to JSON.
options JsonSerializerOptions An object that specifies serialization options to use.
return void