summary refs log tree commit diff
path: root/ModAS.Classes
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-27 19:45:51 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-27 19:45:51 +0100
commitc04719d87abbe9feb94d9b3e8cf1812d3f7356e0 (patch)
tree68454b2f82300c887ddef475fa99f2560e38b611 /ModAS.Classes
parentTransactions test (diff)
downloadModAS-c04719d87abbe9feb94d9b3e8cf1812d3f7356e0.tar.xz
Room query v0
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