C# Класс Telegram.BotAPI.Converters.InputMessageContentConverter

Converts an InputMessageContent to or from JSON.
Наследование: JsonConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Read() публичный Метод

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.
Результат InputMessageContent

Write() публичный Метод

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.
Результат void