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

namespace MediaModeratorPoC.StateEventTypes;

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