Skip to content

Message

Message Record

C#
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
public record Message(
    [property: JsonPropertyName("body")] string Body,
    [property: JsonPropertyName("cid")] string Cid,
    [property: JsonPropertyName("droppedDueToThrottle")] bool DroppedDueToThrottle,
    [property: JsonPropertyName("game_name")] string GameName,
    [property: JsonPropertyName("game_tag")] string GameTag,
    [property: JsonPropertyName("id")] string Id,
    [property: JsonPropertyName("mid")] string Mid,
    [property: JsonPropertyName("name")] string Name,
    [property: JsonPropertyName("pid")] string Pid,
    [property: JsonPropertyName("puuid")] string Puuid,
    [property: JsonPropertyName("read")] bool Read,
    [property: JsonPropertyName("region")] string Region,
    [property: JsonPropertyName("time")] string Time,
    [property: JsonPropertyName("type")] string Type,
    [property: JsonPropertyName("uicEvent")] bool UicEvent
);

public record InternalMessages(
    [property: JsonPropertyName("messages")] IReadOnlyList<Message> Messages
);