diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-04 02:17:10 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-04 02:17:10 +0200 |
commit | 21da6cde79ccd0cb7f895a29e3d8cab959ef11ba (patch) | |
tree | fb0b89566b64ae907d7ca3ea8a29adcf0c0361d0 /LibMatrix/StateEventTypes/Spec/JoinRulesEventData.cs | |
parent | Clean up some extension functions (diff) | |
download | LibMatrix-21da6cde79ccd0cb7f895a29e3d8cab959ef11ba.tar.xz |
Too many changes to name...
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; } + } } |