From f866946fbbe962c712049327ade9dcbd43900295 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sun, 25 Jun 2023 03:07:05 +0200 Subject: Working state, refactored Rory&::LibMatrix --- MatrixRoomUtils.Core/StateEventTypes/ServerACLData.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 MatrixRoomUtils.Core/StateEventTypes/ServerACLData.cs (limited to 'MatrixRoomUtils.Core/StateEventTypes/ServerACLData.cs') diff --git a/MatrixRoomUtils.Core/StateEventTypes/ServerACLData.cs b/MatrixRoomUtils.Core/StateEventTypes/ServerACLData.cs new file mode 100644 index 0000000..41bf0a8 --- /dev/null +++ b/MatrixRoomUtils.Core/StateEventTypes/ServerACLData.cs @@ -0,0 +1,17 @@ +using System.Text.Json.Serialization; +using MatrixRoomUtils.Core.Extensions; +using MatrixRoomUtils.Core.Interfaces; + +namespace MatrixRoomUtils.Core.StateEventTypes; + +[MatrixEvent(EventName = "m.room.server_acl")] +public class ServerACLData : IStateEventType { + [JsonPropertyName("allow")] + public List Allow { get; set; } // = null!; + + [JsonPropertyName("deny")] + public List Deny { get; set; } // = null!; + + [JsonPropertyName("allow_ip_literals")] + public bool AllowIpLiterals { get; set; } // = false; +} \ No newline at end of file -- cgit 1.4.1