diff options
Diffstat (limited to 'LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs')
-rw-r--r-- | LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs | 12 |
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; } + } } |