From f5447484512d726f4403f0d7725777d0a95601fb Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 19 Sep 2023 00:16:36 +0200 Subject: Add more stuff, add unit tests --- LibMatrix/EventTypes/Spec/State/ServerACLEventData.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 LibMatrix/EventTypes/Spec/State/ServerACLEventData.cs (limited to 'LibMatrix/EventTypes/Spec/State/ServerACLEventData.cs') diff --git a/LibMatrix/EventTypes/Spec/State/ServerACLEventData.cs b/LibMatrix/EventTypes/Spec/State/ServerACLEventData.cs new file mode 100644 index 0000000..f18fe43 --- /dev/null +++ b/LibMatrix/EventTypes/Spec/State/ServerACLEventData.cs @@ -0,0 +1,17 @@ +using System.Text.Json.Serialization; +using LibMatrix.Helpers; +using LibMatrix.Interfaces; + +namespace LibMatrix.EventTypes.Spec.State; + +[MatrixEvent(EventName = "m.room.server_acl")] +public class ServerACLEventContent : EventContent { + [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; +} -- cgit 1.4.1