aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Plugins/BaseUiPlugin.cs
blob: 070f56983f5d4c7a268be9a8c33fa6ff964113c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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; }
    }
}