58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
using MediaBrowser.Model.Plugins;
|
|
|
|
namespace ConfusedPolarBear.Plugin.IntroSkipper.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; }
|
|
}
|