about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/Interop
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix.EventTypes/Interop')
-rw-r--r--LibMatrix.EventTypes/Interop/Draupnir/DraupnirProtectedRoomsData.cs11
1 files changed, 11 insertions, 0 deletions
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<string> Rooms { get; set; } = new(); +} \ No newline at end of file