about summary refs log tree commit diff
path: root/ExampleBots/ModerationBot/PolicyList.cs
blob: a3052bdd78fa1cb1e550263984733038168194a1 (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;
using LibMatrix.RoomTypes;
using ModerationBot.StateEventTypes;

namespace ModerationBot;

public class PolicyList {
    [JsonIgnore]
    public GenericRoom Room { get; set; }

    [JsonPropertyName("trusted")]
    public bool Trusted { get; set; } = false;

    [JsonIgnore]
    public List<StateEventResponse> Policies { get; set; } = new();
}