ConfigurationPageInfo.cs 995 B

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