about summary refs log tree commit diff
path: root/LibMatrix/Filters/LocalRoomQueryFilter.cs
blob: b3bd4c0a1cc37a9bafe7037d700979beb941aad2 (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
namespace LibMatrix.Filters;

public class LocalRoomQueryFilter {
    public string RoomIdContains { get; set; } = "";
    public string NameContains { get; set; } = "";
    public string CanonicalAliasContains { get; set; } = "";
    public string VersionContains { get; set; } = "";
    public string CreatorContains { get; set; } = "";
    public string EncryptionContains { get; set; } = "";
    public string JoinRulesContains { get; set; } = "";
    public string GuestAccessContains { get; set; } = "";
    public string HistoryVisibilityContains { get; set; } = "";

    public bool Federatable { get; set; } = true;
    public bool Public { get; set; } = true;

    public int JoinedMembersGreaterThan { get; set; }
    public int JoinedMembersLessThan { get; set; } = int.MaxValue;

    public int JoinedLocalMembersGreaterThan { get; set; }
    public int JoinedLocalMembersLessThan { get; set; } = int.MaxValue;
    public int StateEventsGreaterThan { get; set; }
    public int StateEventsLessThan { get; set; } = int.MaxValue;

    public bool CheckFederation { get; set; }
    public bool CheckPublic { get; set; }
}