ConfigurationPageInfo.cs 946 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using MediaBrowser.Controller.Plugins;
  3. namespace MediaBrowser.WebDashboard.Api
  4. {
  5. public class ConfigurationPageInfo
  6. {
  7. /// <summary>
  8. /// Gets the name.
  9. /// </summary>
  10. /// <value>The name.</value>
  11. public string Name { get; set; }
  12. /// <summary>
  13. /// Gets the type of the configuration page.
  14. /// </summary>
  15. /// <value>The type of the configuration page.</value>
  16. public ConfigurationPageType ConfigurationPageType { get; set; }
  17. /// <summary>
  18. /// Gets or sets the plugin id.
  19. /// </summary>
  20. /// <value>The plugin id.</value>
  21. public string PluginId { get; set; }
  22. public ConfigurationPageInfo(IPluginConfigurationPage page)
  23. {
  24. Name = page.Name;
  25. ConfigurationPageType = page.ConfigurationPageType;
  26. PluginId = page.Plugin.Id.ToString("N");
  27. }
  28. }
  29. }