BaseUiPlugin.cs 979 B

123456789101112131415161718192021222324252627282930
  1. using MediaBrowser.Model.Plugins;
  2. using System;
  3. namespace MediaBrowser.Common.Plugins
  4. {
  5. /// <summary>
  6. /// Represents a common base class for any plugin that has ui components
  7. /// </summary>
  8. public abstract class BaseUiPlugin<TConfigurationType> : BasePlugin<TConfigurationType>, IUIPlugin
  9. where TConfigurationType : BasePluginConfiguration
  10. {
  11. /// <summary>
  12. /// Returns true or false indicating if the plugin should be downloaded and run within the Ui.
  13. /// </summary>
  14. /// <value><c>true</c> if [download to UI]; otherwise, <c>false</c>.</value>
  15. public sealed override bool DownloadToUi
  16. {
  17. get
  18. {
  19. return true;
  20. }
  21. }
  22. /// <summary>
  23. /// Gets the minimum required UI version.
  24. /// </summary>
  25. /// <value>The minimum required UI version.</value>
  26. public abstract Version MinimumRequiredUIVersion { get; }
  27. }
  28. }