mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
31 lines
979 B
C#
31 lines
979 B
C#
using MediaBrowser.Model.Plugins;
|
|
using System;
|
|
|
|
namespace MediaBrowser.Common.Plugins
|
|
{
|
|
/// <summary>
|
|
/// Represents a common base class for any plugin that has ui components
|
|
/// </summary>
|
|
public abstract class BaseUiPlugin<TConfigurationType> : BasePlugin<TConfigurationType>, IUIPlugin
|
|
where TConfigurationType : BasePluginConfiguration
|
|
{
|
|
/// <summary>
|
|
/// Returns true or false indicating if the plugin should be downloaded and run within the Ui.
|
|
/// </summary>
|
|
/// <value><c>true</c> if [download to UI]; otherwise, <c>false</c>.</value>
|
|
public sealed override bool DownloadToUi
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the minimum required UI version.
|
|
/// </summary>
|
|
/// <value>The minimum required UI version.</value>
|
|
public abstract Version MinimumRequiredUIVersion { get; }
|
|
}
|
|
}
|