C# 클래스 Telegram.BotAPI.Converters.InputMessageContentConverter

Converts an InputMessageContent to or from JSON.
상속: JsonConverter
파일 보기 프로젝트 열기: Eptagone/Telegram.BotAPI

공개 메소드들

메소드 설명
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