about summary refs log tree commit diff
path: root/StateEventTypes/Policies/Implementations/MediaPolicyFile.cs
blob: f0fef63041777fea8c87c43d9578cf72ebbee78c (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, hashed with SHA3-256.
    /// </summary>
    [JsonPropertyName("file_hash")]
    public string? FileHash { get; set; }
}