about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/Filters/LocalRoomQueryFilter.cs
blob: 65c7baaf5dcd74f0050c68cb655b883e7487a005 (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 MatrixRoomUtils.Core.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; }
}