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/RoomPowerLevelEventData.cs | |
parent | Clean up some extension functions (diff) | |
download | LibMatrix-21da6cde79ccd0cb7f895a29e3d8cab959ef11ba.tar.xz |
Too many changes to name...
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs b/LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs index c5dda78..3c985f6 100644 --- a/LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs +++ b/LibMatrix/StateEventTypes/Spec/RoomPowerLevelEventData.cs @@ -1,5 +1,9 @@ +using System; +using System.Collections.Generic; +using System.Linq; using System.Text.Json.Serialization; using LibMatrix.Extensions; +using LibMatrix.Helpers; using LibMatrix.Interfaces; namespace LibMatrix.StateEventTypes.Spec; @@ -7,43 +11,43 @@ namespace LibMatrix.StateEventTypes.Spec; [MatrixEvent(EventName = "m.room.power_levels")] public class RoomPowerLevelEventData : IStateEventType { [JsonPropertyName("ban")] - public int Ban { get; set; } // = 50; + public long Ban { get; set; } // = 50; [JsonPropertyName("events_default")] - public int EventsDefault { get; set; } // = 0; + public long EventsDefault { get; set; } // = 0; [JsonPropertyName("events")] - public Dictionary<string, int> Events { get; set; } // = null!; + public Dictionary<string, long> Events { get; set; } // = null!; [JsonPropertyName("invite")] - public int Invite { get; set; } // = 50; + public long Invite { get; set; } // = 50; [JsonPropertyName("kick")] - public int Kick { get; set; } // = 50; + public long Kick { get; set; } // = 50; [JsonPropertyName("notifications")] public NotificationsPL NotificationsPl { get; set; } // = null!; [JsonPropertyName("redact")] - public int Redact { get; set; } // = 50; + public long Redact { get; set; } // = 50; [JsonPropertyName("state_default")] - public int StateDefault { get; set; } // = 50; + public long StateDefault { get; set; } // = 50; [JsonPropertyName("users")] - public Dictionary<string, int> Users { get; set; } // = null!; + public Dictionary<string, long> Users { get; set; } // = null!; [JsonPropertyName("users_default")] - public int 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] [JsonPropertyName("historical")] - public int Historical { get; set; } // = 50; + public long Historical { get; set; } // = 50; public class NotificationsPL { [JsonPropertyName("room")] - public int Room { get; set; } = 50; + public long Room { get; set; } = 50; } public bool IsUserAdmin(string userId) { |