1 files changed, 16 insertions, 0 deletions
diff --git a/ModerationBot/PolicyList.cs b/ModerationBot/PolicyList.cs
new file mode 100644
index 0000000..f291c7b
--- /dev/null
+++ b/ModerationBot/PolicyList.cs
@@ -0,0 +1,16 @@
+using System.Text.Json.Serialization;
+using LibMatrix;
+using LibMatrix.RoomTypes;
+
+namespace ModerationBot;
+
+public class PolicyList {
+ [JsonIgnore]
+ public GenericRoom Room { get; set; }
+
+ [JsonPropertyName("trusted")]
+ public bool Trusted { get; set; } = false;
+
+ [JsonIgnore]
+ public List<StateEventResponse> Policies { get; set; } = new();
+}
|