2019-11-27 03:13:09 +09:00

29 lines
737 B
C#

using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.Template.Configuration
{
public enum SomeOptions
{
OneOption,
AnotherOption
}
public class PluginConfiguration : BasePluginConfiguration
{
// store configurable settings your plugin might need
public bool TrueFalseSetting { get; set; }
public int AnInteger { get; set; }
public string AString { get; set; }
public SomeOptions Options { get; set; }
public PluginConfiguration()
{
// set default options here
Options = SomeOptions.AnotherOption;
TrueFalseSetting = true;
AnInteger = 2;
AString = "string";
}
}
}