about summary refs log tree commit diff
path: root/LibMatrix/Responses
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-27 19:45:22 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-27 19:45:22 +0100
commit94b83d4de5e435796da9cc14667c1023a09df8eb (patch)
tree359f0d41431d4f647dddd213ab44f20780531ccd /LibMatrix/Responses
parentSetImpersonate optimisation (dont execute if already set), cleanup (diff)
downloadLibMatrix-94b83d4de5e435796da9cc14667c1023a09df8eb.tar.xz
Cleanup
Diffstat (limited to 'LibMatrix/Responses')
-rw-r--r--LibMatrix/Responses/ModAS/AdminRoomListingResult.cs62
1 files changed, 62 insertions, 0 deletions
diff --git a/LibMatrix/Responses/ModAS/AdminRoomListingResult.cs b/LibMatrix/Responses/ModAS/AdminRoomListingResult.cs
new file mode 100644
index 0000000..95e3dcf
--- /dev/null
+++ b/LibMatrix/Responses/ModAS/AdminRoomListingResult.cs
@@ -0,0 +1,62 @@
+using System.Text.Json.Serialization;
+
+namespace LibMatrix.Responses.ModAS;
+
+public class ModASRoomQueryResult {
+    [JsonPropertyName("room_id")]
+    public required string RoomId { get; set; }
+
+    [JsonPropertyName("name")]
+    public string? Name { get; set; }
+
+    [JsonPropertyName("canonical_alias")]
+    public string? CanonicalAlias { get; set; }
+
+    [JsonPropertyName("joined_members")]
+    public int JoinedMembers { get; set; }
+
+    [JsonPropertyName("joined_local_members")]
+    public int JoinedLocalMembers { get; set; }
+
+    [JsonPropertyName("version")]
+    public string? Version { get; set; }
+
+    [JsonPropertyName("creator")]
+    public string? Creator { get; set; }
+
+    [JsonPropertyName("encryption")]
+    public string? Encryption { get; set; }
+
+    [JsonPropertyName("federatable")]
+    public bool Federatable { get; set; }
+
+    [JsonPropertyName("public")]
+    public bool Public { get; set; }
+
+    [JsonPropertyName("join_rules")]
+    public string? JoinRules { get; set; }
+
+    [JsonPropertyName("guest_access")]
+    public string? GuestAccess { get; set; }
+
+    [JsonPropertyName("history_visibility")]
+    public string? HistoryVisibility { get; set; }
+
+    [JsonPropertyName("state_events")]
+    public int StateEvents { get; set; }
+    
+    [JsonPropertyName("type")]
+    public string? Type { get; set; }
+
+    [JsonPropertyName("avatar_url")]
+    public string? AvatarUrl { get; set; }
+
+    [JsonPropertyName("topic")]
+    public string? RoomTopic { get; set; }
+
+    [JsonPropertyName("total_members")]
+    public int TotalMembers { get; set; }
+    
+    [JsonPropertyName("total_local_members")]
+    public int TotalLocalMembers { get; set; }
+}
\ No newline at end of file