2019-02-21 01:57:43 -08:00
|
|
|
using MediaBrowser.Model.Plugins;
|
2019-03-10 08:53:30 +09:00
|
|
|
|
|
|
|
namespace Jellyfin.Plugin.Template.Configuration
|
2019-02-21 01:57:43 -08:00
|
|
|
{
|
|
|
|
public enum SomeOptions
|
|
|
|
{
|
|
|
|
OneOption,
|
|
|
|
AnotherOption
|
|
|
|
}
|
2019-11-27 03:13:09 +09:00
|
|
|
|
2019-02-21 01:57:43 -08:00
|
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
|
|
{
|
2019-11-27 03:13:09 +09:00
|
|
|
// store configurable settings your plugin might need
|
2019-03-10 08:53:30 +09:00
|
|
|
public bool TrueFalseSetting { get; set; }
|
|
|
|
public int AnInteger { get; set; }
|
|
|
|
public string AString { get; set; }
|
|
|
|
public SomeOptions Options { get; set; }
|
2019-11-27 03:13:09 +09:00
|
|
|
|
2019-02-21 01:57:43 -08:00
|
|
|
public PluginConfiguration()
|
|
|
|
{
|
2019-11-27 03:13:09 +09:00
|
|
|
// set default options here
|
2019-02-21 01:57:43 -08:00
|
|
|
Options = SomeOptions.AnotherOption;
|
|
|
|
TrueFalseSetting = true;
|
2019-11-27 03:13:09 +09:00
|
|
|
AnInteger = 2;
|
|
|
|
AString = "string";
|
2019-02-21 01:57:43 -08:00
|
|
|
}
|
|
|
|
}
|
2019-03-10 08:53:30 +09:00
|
|
|
}
|