about summary refs log tree commit diff
path: root/ExampleBots/ModerationBot/StateEventTypes/Policies/Implementations/MediaPolicyFile.cs
blob: c5b6ef28545aab975a31efffb32a31de00daf653 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System.Text.Json.Serialization;
using LibMatrix.EventTypes;

namespace ModerationBot.StateEventTypes.Policies.Implementations;

/// <summary>
///     File policy event, entity is the MXC URI of the file, hashed with SHA3-256.
/// </summary>
[MatrixEvent(EventName = "gay.rory.moderation.rule.media")]
public class MediaPolicyFile : BasePolicy {
    /// <summary>
    ///     Hash of the file
    /// </summary>
    [JsonPropertyName("file_hash")]
    public string? FileHash { get; set; }
}