From f60e3645e18a7f590dc913d0f555fcb82f072d07 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 11 Aug 2024 21:47:46 +0200 Subject: init --- Configuration/PluginConfiguration.cs | 57 +++++++++++++++++++++++++ Configuration/configPage.html | 80 ++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 Configuration/PluginConfiguration.cs create mode 100644 Configuration/configPage.html (limited to 'Configuration') 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; + +/// +/// The configuration options. +/// +public enum SomeOptions +{ + /// + /// Option one. + /// + OneOption, + + /// + /// Second option. + /// + AnotherOption +} + +/// +/// Plugin configuration. +/// +public class PluginConfiguration : BasePluginConfiguration +{ + /// + /// Initializes a new instance of the class. + /// + public PluginConfiguration() + { + // set default options here + Options = SomeOptions.AnotherOption; + TrueFalseSetting = true; + AnInteger = 2; + AString = "string"; + } + + /// + /// Gets or sets a value indicating whether some true or false setting is enabled. + /// + public bool TrueFalseSetting { get; set; } + + /// + /// Gets or sets an integer setting. + /// + public int AnInteger { get; set; } + + /// + /// Gets or sets a string setting. + /// + public string AString { get; set; } + + /// + /// Gets or sets an enum option. + /// + public SomeOptions Options { get; set; } +} \ No newline at end of file diff --git a/Configuration/configPage.html b/Configuration/configPage.html new file mode 100644 index 0000000..b72df9f --- /dev/null +++ b/Configuration/configPage.html @@ -0,0 +1,80 @@ + + + + + Template + + +
+
+
+
+
+ + +
+
+ + +
A Description
+
+
+ +
+
+ + +
Another Description
+
+
+ +
+
+
+
+ +
+ + -- cgit