summaryrefslogtreecommitdiff
path: root/Configuration/PluginConfiguration.cs
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-08-11 21:47:46 +0200
committerLinnea Gräf <nea@nea.moe>2024-08-11 21:47:46 +0200
commitf60e3645e18a7f590dc913d0f555fcb82f072d07 (patch)
tree3e74108cecc54086c5c5241ad9751efa549fd298 /Configuration/PluginConfiguration.cs
downloadJCoverXtremePro-f60e3645e18a7f590dc913d0f555fcb82f072d07.tar.gz
JCoverXtremePro-f60e3645e18a7f590dc913d0f555fcb82f072d07.tar.bz2
JCoverXtremePro-f60e3645e18a7f590dc913d0f555fcb82f072d07.zip
init
Diffstat (limited to 'Configuration/PluginConfiguration.cs')
-rw-r--r--Configuration/PluginConfiguration.cs57
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