From 8673cb236f427ba6af6382e3b5702a134f1afe2e Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 18 Feb 2025 07:40:41 +0100 Subject: MxcUri class, other various work --- .../Spec/State/RoomInfo/RoomJoinRulesEventContent.cs | 2 +- .../Spec/State/RoomInfo/RoomPowerLevelEventContent.cs | 6 +++--- .../Spec/State/RoomInfo/RoomServerACLEventContent.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'LibMatrix.EventTypes/Spec') diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs index a008c37..03d994d 100644 --- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs @@ -12,7 +12,7 @@ public class RoomJoinRulesEventContent : EventContent { /// unknown values are treated as "private" /// [JsonPropertyName("join_rule")] - public string JoinRuleValue { get; set; } = null!; + public string JoinRuleValue { get; set; } [JsonIgnore] public JoinRules JoinRule { diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomPowerLevelEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomPowerLevelEventContent.cs index c9aa603..22fa3b7 100644 --- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomPowerLevelEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomPowerLevelEventContent.cs @@ -20,7 +20,7 @@ public class RoomPowerLevelEventContent : EventContent { public long? Kick { get; set; } = 50; [JsonPropertyName("notifications")] - public NotificationsPowerLevels? NotificationsPl { get; set; } // = null!; + public NotificationsPowerLevels? NotificationsPl { get; set; } [JsonPropertyName("redact")] public long? Redact { get; set; } = 50; @@ -29,10 +29,10 @@ public class RoomPowerLevelEventContent : EventContent { public long? StateDefault { get; set; } = 50; [JsonPropertyName("events")] - public Dictionary? Events { get; set; } // = null!; + public Dictionary? Events { get; set; } [JsonPropertyName("users")] - public Dictionary? Users { get; set; } // = null!; + public Dictionary? Users { get; set; } [JsonPropertyName("users_default")] public long? UsersDefault { get; set; } = 0; diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomServerACLEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomServerACLEventContent.cs index e3fc892..c492250 100644 --- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomServerACLEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomServerACLEventContent.cs @@ -7,10 +7,10 @@ public class RoomServerAclEventContent : EventContent { public const string EventId = "m.room.server_acl"; [JsonPropertyName("allow")] - public List? Allow { get; set; } // = null!; + public List? Allow { get; set; } [JsonPropertyName("deny")] - public List? Deny { get; set; } // = null!; + public List? Deny { get; set; } [JsonPropertyName("allow_ip_literals")] public bool AllowIpLiterals { get; set; } // = false; -- cgit 1.5.1