diff options
Diffstat (limited to 'Configuration/PluginConfiguration.cs')
-rw-r--r-- | Configuration/PluginConfiguration.cs | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Configuration/PluginConfiguration.cs b/Configuration/PluginConfiguration.cs new file mode 100644 index 0000000..8268858 --- /dev/null +++ b/Configuration/PluginConfiguration.cs @@ -0,0 +1,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; } +}
\ No newline at end of file |