From 41316bb445790e7df34f55b7e2b1cfeae04f2adc Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Thu, 23 Nov 2023 05:42:33 +0100 Subject: Moderation bot work --- PolicyList.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 PolicyList.cs (limited to 'PolicyList.cs') diff --git a/PolicyList.cs b/PolicyList.cs new file mode 100644 index 0000000..a3052bd --- /dev/null +++ b/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 Policies { get; set; } = new(); +} -- cgit 1.5.1