about summary refs log tree commit diff
path: root/LibMatrix.LegacyEvents.EventTypes/LegacyMatrixEventAttribute.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-05-30 09:46:43 +0000
committerRory& <root@rory.gay>2024-05-30 09:46:43 +0000
commit30a0868789466012bab869af4300aef5a9cac108 (patch)
tree12790166e4d2c01a141928143b9b4d96dd08ace8 /LibMatrix.LegacyEvents.EventTypes/LegacyMatrixEventAttribute.cs
parentClarify LegacyEvent types (diff)
downloadLibMatrix-30a0868789466012bab869af4300aef5a9cac108.tar.xz
Rename legacy event types
Diffstat (limited to 'LibMatrix.LegacyEvents.EventTypes/LegacyMatrixEventAttribute.cs')
-rw-r--r--LibMatrix.LegacyEvents.EventTypes/LegacyMatrixEventAttribute.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/LibMatrix.LegacyEvents.EventTypes/LegacyMatrixEventAttribute.cs b/LibMatrix.LegacyEvents.EventTypes/LegacyMatrixEventAttribute.cs
new file mode 100644
index 0000000..bfcc6f8
--- /dev/null
+++ b/LibMatrix.LegacyEvents.EventTypes/LegacyMatrixEventAttribute.cs
@@ -0,0 +1,7 @@
+namespace LibMatrix.LegacyEvents.EventTypes;
+
+[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
+public class LegacyMatrixEventAttribute : Attribute {
+    public required string EventName { get; set; }
+    public bool Legacy { get; set; }
+}
\ No newline at end of file