about summary refs log tree commit diff
path: root/LibMatrix.EventTypes.Abstractions/MatrixEventAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix.EventTypes.Abstractions/MatrixEventAttribute.cs')
-rw-r--r--LibMatrix.EventTypes.Abstractions/MatrixEventAttribute.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/LibMatrix.EventTypes.Abstractions/MatrixEventAttribute.cs b/LibMatrix.EventTypes.Abstractions/MatrixEventAttribute.cs
new file mode 100644
index 0000000..aface6d
--- /dev/null
+++ b/LibMatrix.EventTypes.Abstractions/MatrixEventAttribute.cs
@@ -0,0 +1,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;
+}
\ No newline at end of file