about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomRedactionEventContent.cs
blob: 055f22ddbc63416b3a3a920235b691015bb94459 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;

namespace LibMatrix.EventTypes.Spec.State.RoomInfo;

[MatrixEvent(EventName = EventId)]
public class RoomRedactionEventContent : EventContent {
    public const string EventId = "m.room.redaction";

    [JsonPropertyName("reason")]
    public string? Reason { get; set; }

    /// <summary>
    /// Required in room version 11
    /// </summary>
    [JsonPropertyName("redacts")]
    public string? Redacts { get; set; }
}