Jellyfin.Plugin.Webdav/Configuration/PluginConfiguration.cs
2025-04-21 21:24:59 +02:00

54 lines
1.4 KiB
C#

using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.Webdav.Configuration
{
/// <summary>
/// Configuration options for the WebDAV plugin.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
/// </summary>
public PluginConfiguration()
{
BaseUrl = "";
Username = "";
Password = "";
RootPath = "/";
CacheDirectory = "";
CacheSizeMb = 100;
}
/// <summary>
/// The base URL of the WebDAV endpoint.
/// </summary>
public string BaseUrl { get; set; }
/// <summary>
/// Username for authentication.
/// </summary>
public string Username { get; set; }
/// <summary>
/// Password for authentication.
/// </summary>
public string Password { get; set; }
/// <summary>
/// Root path within the WebDAV share.
/// </summary>
public string RootPath { get; set; }
/// <summary>
/// Local directory to use for cache files.
/// </summary>
public string CacheDirectory { get; set; }
/// <summary>
/// Maximum size of cache in megabytes.
/// </summary>
public int CacheSizeMb { get; set; }
}
}