diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
| commit | 767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch) | |
| tree | 49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.Common/Plugins/BaseUiPlugin.cs | |
| parent | 845554722efaed872948a9e0f7202e3ef52f1b6e (diff) | |
Pushing missing changes
Diffstat (limited to 'MediaBrowser.Common/Plugins/BaseUiPlugin.cs')
| -rw-r--r-- | MediaBrowser.Common/Plugins/BaseUiPlugin.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Plugins/BaseUiPlugin.cs b/MediaBrowser.Common/Plugins/BaseUiPlugin.cs new file mode 100644 index 000000000..070f56983 --- /dev/null +++ b/MediaBrowser.Common/Plugins/BaseUiPlugin.cs @@ -0,0 +1,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; } + } +} |
