diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-19 00:16:36 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-19 00:16:36 +0200 |
commit | f5447484512d726f4403f0d7725777d0a95601fb (patch) | |
tree | 47fe88a4c021f62ff42663f6d8c5229e71d21813 /LibMatrix/EventTypes/Spec/State/RoomPowerLevelEventData.cs | |
parent | Improve README (diff) | |
download | LibMatrix-f5447484512d726f4403f0d7725777d0a95601fb.tar.xz |
Add more stuff, add unit tests
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/EventTypes/Spec/State/RoomPowerLevelEventData.cs (renamed from LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs) | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs b/LibMatrix/EventTypes/Spec/State/RoomPowerLevelEventData.cs index 960c198..1a5d5f5 100644 --- a/LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs +++ b/LibMatrix/EventTypes/Spec/State/RoomPowerLevelEventData.cs @@ -2,39 +2,39 @@ using System.Text.Json.Serialization; using LibMatrix.Helpers; using LibMatrix.Interfaces; -namespace LibMatrix.StateEventTypes.Spec; +namespace LibMatrix.EventTypes.Spec.State; [MatrixEvent(EventName = "m.room.power_levels")] public class RoomPowerLevelEventContent : EventContent { [JsonPropertyName("ban")] - public long Ban { get; set; } // = 50; + public long? Ban { get; set; } // = 50; [JsonPropertyName("events_default")] public long EventsDefault { get; set; } // = 0; [JsonPropertyName("events")] - public Dictionary<string, long> Events { get; set; } // = null!; + public Dictionary<string, long>? Events { get; set; } // = null!; [JsonPropertyName("invite")] - public long Invite { get; set; } // = 50; + public long? Invite { get; set; } // = 50; [JsonPropertyName("kick")] - public long Kick { get; set; } // = 50; + public long? Kick { get; set; } // = 50; [JsonPropertyName("notifications")] - public NotificationsPL NotificationsPl { get; set; } // = null!; + public NotificationsPL? NotificationsPl { get; set; } // = null!; [JsonPropertyName("redact")] - public long Redact { get; set; } // = 50; + public long? Redact { get; set; } // = 50; [JsonPropertyName("state_default")] - public long StateDefault { get; set; } // = 50; + public long? StateDefault { get; set; } // = 50; [JsonPropertyName("users")] - public Dictionary<string, long> Users { get; set; } // = null!; + public Dictionary<string, long>? Users { get; set; } // = null!; [JsonPropertyName("users_default")] - public long UsersDefault { get; set; } // = 0; + public long? UsersDefault { get; set; } // = 0; [Obsolete("Historical was a key related to MSC2716, a spec change on backfill that was dropped!", true)] [JsonIgnore] |