IPluginConfigurationPage.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.IO;
  3. namespace MediaBrowser.Controller.Plugins
  4. {
  5. /// <summary>
  6. /// Interface IConfigurationPage
  7. /// </summary>
  8. public interface IPluginConfigurationPage
  9. {
  10. /// <summary>
  11. /// Gets the name.
  12. /// </summary>
  13. /// <value>The name.</value>
  14. string Name { get; }
  15. /// <summary>
  16. /// Gets the type of the configuration page.
  17. /// </summary>
  18. /// <value>The type of the configuration page.</value>
  19. ConfigurationPageType ConfigurationPageType { get; }
  20. /// <summary>
  21. /// Gets the plugin id.
  22. /// </summary>
  23. /// <value>The plugin id.</value>
  24. Guid? PluginId { get; }
  25. /// <summary>
  26. /// Gets the HTML stream.
  27. /// </summary>
  28. /// <returns>Stream.</returns>
  29. Stream GetHtmlStream();
  30. /// <summary>
  31. /// Gets the version. Typically taken from Plugin.Version
  32. /// </summary>
  33. /// <value>The version.</value>
  34. string Version { get; }
  35. /// <summary>
  36. /// For http caching purposes. Typically taken from Plugin.AssemblyDateLastModified
  37. /// </summary>
  38. DateTime DateLastModified { get; }
  39. }
  40. /// <summary>
  41. /// Enum ConfigurationPageType
  42. /// </summary>
  43. public enum ConfigurationPageType
  44. {
  45. /// <summary>
  46. /// The plugin configuration
  47. /// </summary>
  48. PluginConfiguration,
  49. /// <summary>
  50. /// The none
  51. /// </summary>
  52. None
  53. }
  54. }