diff options
author | Emma@Rory& <root@rory.gay> | 2023-07-24 20:56:42 +0200 |
---|---|---|
committer | Emma@Rory& <root@rory.gay> | 2023-07-24 20:56:42 +0200 |
commit | 5495a35403d285007d67f503042720302efdf94c (patch) | |
tree | 3db4dc545ce3ad252f82a577ecad4150320c1ba3 /MatrixRoomUtils.Core/StateEventTypes/Spec/RoomAvatarEventData.cs | |
parent | Change max line width from 120 to 180 (diff) | |
download | MatrixUtils-5495a35403d285007d67f503042720302efdf94c.tar.xz |
Code cleanup
Diffstat (limited to 'MatrixRoomUtils.Core/StateEventTypes/Spec/RoomAvatarEventData.cs')
-rw-r--r-- | MatrixRoomUtils.Core/StateEventTypes/Spec/RoomAvatarEventData.cs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomAvatarEventData.cs b/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomAvatarEventData.cs index bab297b..a14e4c5 100644 --- a/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomAvatarEventData.cs +++ b/MatrixRoomUtils.Core/StateEventTypes/Spec/RoomAvatarEventData.cs @@ -2,17 +2,27 @@ using System.Text.Json.Serialization; using MatrixRoomUtils.Core.Extensions; using MatrixRoomUtils.Core.Interfaces; -namespace MatrixRoomUtils.Core.StateEventTypes.Spec; +namespace MatrixRoomUtils.Core.StateEventTypes.Spec; [MatrixEvent(EventName = "m.room.avatar")] public class RoomAvatarEventData : IStateEventType { [JsonPropertyName("url")] public string? Url { get; set; } - + [JsonPropertyName("info")] public RoomAvatarInfo? Info { get; set; } public class RoomAvatarInfo { - + [JsonPropertyName("h")] + public int? Height { get; set; } + + [JsonPropertyName("w")] + public int? Width { get; set; } + + [JsonPropertyName("mimetype")] + public string? MimeType { get; set; } + + [JsonPropertyName("size")] + public int? Size { get; set; } } -} \ No newline at end of file +} |