about summary refs log tree commit diff
path: root/LibMatrix/StateEventTypes/Spec/RoomTopicEventData.cs
blob: eaf9e8c63ab86b43c340f6377b634e96fad7c50f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System.Text.Json.Serialization;
using LibMatrix.Extensions;
using LibMatrix.Helpers;
using LibMatrix.Interfaces;

namespace LibMatrix.StateEventTypes.Spec;

[MatrixEvent(EventName = "m.room.topic")]
[MatrixEvent(EventName = "org.matrix.msc3765.topic", Legacy = true)]
public class RoomTopicEventData : IStateEventType {
    [JsonPropertyName("topic")]
    public string? Topic { get; set; }
}