about summary refs log tree commit diff
path: root/LibMatrix.EventTypes.Abstractions/MatrixEventAttribute.cs
blob: aface6d73e38a6e5fc40206d2b8e40d2cbe83008 (plain) (blame)
1
2
3
4
5
6
7
8
9
using System.Text.Json.Serialization;

namespace LibMatrix.EventTypes;

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class MatrixEventAttribute(string eventType, bool deprecated = false) : Attribute {
    public string EventType { get; } = eventType;
    public bool Deprecated { get; } = deprecated;
}