about summary refs log tree commit diff
path: root/LibMatrix/Filters/LocalRoomQueryFilter.cs
blob: 668d408f9ae7031b3a4b6f6e56c8ac59784a3f59 (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
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; } = 0;
    public int JoinedMembersLessThan { get; set; } = int.MaxValue;

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


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