summaryrefslogtreecommitdiff
path: root/Configuration/PluginConfiguration.cs
blob: 8268858e7c18e3cf5c8005aef5a7b444f4145113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using MediaBrowser.Model.Plugins;

namespace Jellyfin.Plugin.JellyFed.Configuration;

/// <summary>
///     The configuration options.
/// </summary>
public enum SomeOptions
{
    /// <summary>
    ///     Option one.
    /// </summary>
    OneOption,

    /// <summary>
    ///     Second option.
    /// </summary>
    AnotherOption
}

/// <summary>
///     Plugin configuration.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
    /// <summary>
    ///     Initializes a new instance of the <see cref="PluginConfiguration" /> class.
    /// </summary>
    public PluginConfiguration()
    {
        // set default options here
        Options = SomeOptions.AnotherOption;
        TrueFalseSetting = true;
        AnInteger = 2;
        AString = "string";
    }

    /// <summary>
    ///     Gets or sets a value indicating whether some true or false setting is enabled.
    /// </summary>
    public bool TrueFalseSetting { get; set; }

    /// <summary>
    ///     Gets or sets an integer setting.
    /// </summary>
    public int AnInteger { get; set; }

    /// <summary>
    ///     Gets or sets a string setting.
    /// </summary>
    public string AString { get; set; }

    /// <summary>
    ///     Gets or sets an enum option.
    /// </summary>
    public SomeOptions Options { get; set; }
}