about summary refs log tree commit diff
path: root/LibMatrix.EventTypes
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-13 11:50:01 +0100
committerRory& <root@rory.gay>2025-03-13 11:50:01 +0100
commit08b552fc3ad6e81d8ebddc238043681da90673b3 (patch)
tree7186fa94059a64ee34a3e7ba78fb00a95648b345 /LibMatrix.EventTypes
parentAdd more bot stuff (diff)
downloadLibMatrix-08b552fc3ad6e81d8ebddc238043681da90673b3.tar.xz
Add full invite data to invite handler callback
Diffstat (limited to 'LibMatrix.EventTypes')
-rw-r--r--LibMatrix.EventTypes/EventContent.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/LibMatrix.EventTypes/EventContent.cs b/LibMatrix.EventTypes/EventContent.cs

index a837252..89686ae 100644 --- a/LibMatrix.EventTypes/EventContent.cs +++ b/LibMatrix.EventTypes/EventContent.cs
@@ -6,6 +6,9 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes; public abstract class EventContent { + [JsonExtensionData] + public Dictionary<string, JsonElement>? AdditionalData { get; set; } = []; + public static List<string> GetMatchingEventTypes<T>() where T : EventContent { var type = typeof(T); var eventTypes = new List<string>();