about summary refs log tree commit diff
path: root/ExampleBots/ModerationBot/PolicyList.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ExampleBots/ModerationBot/PolicyList.cs')
-rw-r--r--ExampleBots/ModerationBot/PolicyList.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/ExampleBots/ModerationBot/PolicyList.cs b/ExampleBots/ModerationBot/PolicyList.cs
new file mode 100644
index 0000000..a3052bd
--- /dev/null
+++ b/ExampleBots/ModerationBot/PolicyList.cs
@@ -0,0 +1,17 @@
+using System.Text.Json.Serialization;
+using LibMatrix;
+using LibMatrix.RoomTypes;
+using ModerationBot.StateEventTypes;
+
+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();
+}