summary refs log tree commit diff
path: root/ModAS.Classes
diff options
context:
space:
mode:
Diffstat (limited to 'ModAS.Classes')
-rw-r--r--ModAS.Classes/ModAS.Classes.csproj9
-rw-r--r--ModAS.Classes/RoomQueryFilter.cs26
2 files changed, 35 insertions, 0 deletions
diff --git a/ModAS.Classes/ModAS.Classes.csproj b/ModAS.Classes/ModAS.Classes.csproj
new file mode 100644

index 0000000..3a63532 --- /dev/null +++ b/ModAS.Classes/ModAS.Classes.csproj
@@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <TargetFramework>net8.0</TargetFramework> + <ImplicitUsings>enable</ImplicitUsings> + <Nullable>enable</Nullable> + </PropertyGroup> + +</Project> diff --git a/ModAS.Classes/RoomQueryFilter.cs b/ModAS.Classes/RoomQueryFilter.cs new file mode 100644
index 0000000..0a6430e --- /dev/null +++ b/ModAS.Classes/RoomQueryFilter.cs
@@ -0,0 +1,26 @@ +namespace ModAS.Classes; + +public class RoomQueryFilter { + 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 string? AvatarUrlContains { get; set; } + public string? RoomTopicContains { get; set; } + + public bool? IsFederatable { get; set; } = true; + public bool? IsPublic { get; set; } = true; + + public uint? JoinedMembersMin { get; set; } + public uint? JoinedMembersMax { get; set; } + public uint? JoinedLocalMembersMin { get; set; } + public uint? JoinedLocalMembersMax { get; set; } + public uint? StateEventsMin { get; set; } + public uint? StateEventsMax { get; set; } + +} \ No newline at end of file