about summary refs log tree commit diff
path: root/LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs')
-rw-r--r--LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs b/LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs
index 0393395..d3da559 100644
--- a/LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs
+++ b/LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs
@@ -1,5 +1,7 @@
+using System.Collections.Generic;
 using System.Text.Json.Serialization;
 using LibMatrix.Extensions;
+using LibMatrix.Helpers;
 using LibMatrix.Interfaces;
 
 namespace LibMatrix.StateEventTypes.Spec;
@@ -14,5 +16,13 @@ public class JoinRulesEventData : IStateEventType {
     public string JoinRule { get; set; }
 
     [JsonPropertyName("allow")]
-    public List<string> Allow { get; set; }
+    public List<AllowEntry> Allow { get; set; }
+
+    public class AllowEntry {
+        [JsonPropertyName("type")]
+        public string Type { get; set; }
+
+        [JsonPropertyName("room_id")]
+        public string RoomId { get; set; }
+    }
 }