about summary refs log tree commit diff
path: root/LibMatrix/Responses/Admin/AdminRoomListingResult.cs
blob: f0351848e7f461881a74060b589b19ff70a59be6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System.Text.Json.Serialization;

namespace LibMatrix.Responses.Admin;

public class AdminRoomListingResult {
    [JsonPropertyName("offset")]
    public int Offset { get; set; }

    [JsonPropertyName("total_rooms")]
    public int TotalRooms { get; set; }

    [JsonPropertyName("next_batch")]
    public int? NextBatch { get; set; }

    [JsonPropertyName("prev_batch")]
    public int? PrevBatch { get; set; }

    [JsonPropertyName("rooms")]
    public List<AdminRoomListingResultRoom> Rooms { get; set; } = new();

    public class AdminRoomListingResultRoom {
        [JsonPropertyName("room_id")]
        public string RoomId { get; set; }

        [JsonPropertyName("name")]
        public string? Name { get; set; }

        [JsonPropertyName("canonical_alias")]
        public string? CanonicalAlias { get; set; }

        [JsonPropertyName("joined_members")]
        public int JoinedMembers { get; set; }

        [JsonPropertyName("joined_local_members")]
        public int JoinedLocalMembers { get; set; }

        [JsonPropertyName("version")]
        public string Version { get; set; }

        [JsonPropertyName("creator")]
        public string Creator { get; set; }

        [JsonPropertyName("encryption")]
        public string? Encryption { get; set; }

        [JsonPropertyName("federatable")]
        public bool Federatable { get; set; }

        [JsonPropertyName("public")]
        public bool Public { get; set; }

        [JsonPropertyName("join_rules")]
        public string? JoinRules { get; set; }

        [JsonPropertyName("guest_access")]
        public string? GuestAccess { get; set; }

        [JsonPropertyName("history_visibility")]
        public string? HistoryVisibility { get; set; }

        [JsonPropertyName("state_events")]
        public int StateEvents { get; set; }
    }
}