From bb0c00531dfacd30ecef1ac4444c2e3281fa36b8 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 22 Nov 2024 06:38:42 +0100 Subject: Extra draupnir/policy event work --- .../Interop/Draupnir/DraupnirProtectedRoomsData.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 LibMatrix.EventTypes/Interop/Draupnir/DraupnirProtectedRoomsData.cs (limited to 'LibMatrix.EventTypes/Interop') diff --git a/LibMatrix.EventTypes/Interop/Draupnir/DraupnirProtectedRoomsData.cs b/LibMatrix.EventTypes/Interop/Draupnir/DraupnirProtectedRoomsData.cs new file mode 100644 index 0000000..1917239 --- /dev/null +++ b/LibMatrix.EventTypes/Interop/Draupnir/DraupnirProtectedRoomsData.cs @@ -0,0 +1,11 @@ +using System.Text.Json.Serialization; + +namespace LibMatrix.EventTypes.Interop.Draupnir; + +[MatrixEvent(EventName = EventId)] +public class DraupnirProtectedRoomsData : EventContent { + public const string EventId = "org.matrix.mjolnir.protected_rooms"; + + [JsonPropertyName("rooms")] + public List Rooms { get; set; } = new(); +} \ No newline at end of file -- cgit 1.5.1