about summary refs log tree commit diff
path: root/LibMatrix.LegacyEvents.EventTypes/Common/RoomEmotesLegacyEventContent.cs
blob: a88435974c9c2c0c548cf14c337d971d4892b20f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Text.Json.Serialization;

namespace LibMatrix.LegacyEvents.EventTypes.Common;

[LegacyMatrixEvent(EventName = EventId)]
public class RoomEmotesLegacyEventContent : TimelineLegacyEventContent {
    public const string EventId = "im.ponies.room_emotes";

    [JsonPropertyName("emoticons")]
    public Dictionary<string, EmoticonData>? Emoticons { get; set; }

    [JsonPropertyName("images")]
    public Dictionary<string, EmoticonData>? Images { get; set; }

    [JsonPropertyName("pack")]
    public PackInfo? Pack { get; set; }

    public class EmoticonData {
        [JsonPropertyName("url")]
        public string? Url { get; set; }
    }

    public class PackInfo; // TODO: Implement this
}