Jellyfin.Plugin.Webdav/Configuration/PluginConfiguration.cs

51 lines
1.3 KiB
C#

using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.Webdav.Configuration
{
/// <summary>
/// Configuration options for the WebDAV plugin.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
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; }
}
}