blob: c9ccdb1771654eefa7c6909c7f3aee4586f36d98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System.Text.Json.Serialization;
namespace MatrixAntiDmSpam.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; }
}
}
|