summary refs log tree commit diff
path: root/MxApiExtensions/Classes/MxApiExtensionsUserConfiguration.cs
blob: db83637f5d3bdec7d94fdc0952d3ce54eab212cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using LibMatrix.EventTypes;
using LibMatrix.Interfaces;

namespace MxApiExtensions.Classes; 

[MatrixEvent(EventName = EventId)]
public class MxApiExtensionsUserConfiguration : EventContent {
    public const string EventId = "gay.rory.mxapiextensions.userconfig";
    public ProtocolChangeConfiguration ProtocolChanges { get; set; } = new();
    public InitialSyncConfiguration InitialSyncPreload { get; set; } = new();

    public class InitialSyncConfiguration {
        public bool Enable { get; set; } = true;
    }

    public class ProtocolChangeConfiguration {
        public bool DisableThreads { get; set; } = false;
        public bool DisableVoip { get; set; } = false;
        public bool AutoFollowTombstones { get; set; } = false;
    }
}