ConfigurationPageInfo.cs 932 B

1234567891011121314151617181920212223242526272829303132
  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. PluginId = page.Plugin.Id.ToString("N");
  26. }
  27. }
  28. }