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

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();
}