1 files changed, 25 insertions, 0 deletions
diff --git a/MiniUtils.Core/Classes/MADSIgnoreMetadataContent.cs b/MiniUtils.Core/Classes/MADSIgnoreMetadataContent.cs
new file mode 100644
index 0000000..10eddd0
--- /dev/null
+++ b/MiniUtils.Core/Classes/MADSIgnoreMetadataContent.cs
@@ -0,0 +1,25 @@
+using System.Text.Json.Serialization;
+
+namespace MiniUtils.Core.Classes;
+
+public class MadsIgnoreMetadataContent {
+ public const string EventId = "gay.rory.MatrixAntiDmSpam.ignore_metadata";
+
+ // Whether the ignore entry already existed, if true, do not remove when no matching policies exist
+ [JsonPropertyName("was_user_added")]
+ public required bool WasUserAdded { get; set; }
+
+ [JsonPropertyName("policies")]
+ public required List<PolicyEventReference> Policies { get; set; }
+
+ public class PolicyEventReference {
+ [JsonPropertyName("room_id")]
+ public required string RoomId { get; set; }
+
+ [JsonPropertyName("type")]
+ public required string Type { get; set; }
+
+ [JsonPropertyName("state_key")]
+ public required string StateKey { get; set; }
+ }
+}
\ No newline at end of file
|