C# Class Telegram.BotAPI.Converters.InputMessageContentConverter

Converts an InputMessageContent to or from JSON.
Inheritance: JsonConverter
Afficher le fichier Open project: Eptagone/Telegram.BotAPI

Méthodes publiques

Méthode 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 méthode

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.
Résultat InputMessageContent

Write() public méthode

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.
Résultat void