ServerConfiguration.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Collections.Generic;
  2. using MediaBrowser.Common.Configuration;
  3. using MediaBrowser.Model.Configuration;
  4. namespace MediaBrowser.Controller.Configuration
  5. {
  6. public class ServerConfiguration : BaseApplicationConfiguration
  7. {
  8. public string ImagesByNamePath { get; set; }
  9. /// <summary>
  10. /// Gets or sets the default UI configuration
  11. /// </summary>
  12. public UserConfiguration DefaultUserConfiguration { get; set; }
  13. /// <summary>
  14. /// Gets or sets a list of registered UI device names
  15. /// </summary>
  16. public List<string> DeviceNames { get; set; }
  17. /// <summary>
  18. /// Gets or sets all available UIConfigurations
  19. /// The key contains device name and user id
  20. /// </summary>
  21. public Dictionary<string, UserConfiguration> UserConfigurations { get; set; }
  22. public ServerConfiguration()
  23. : base()
  24. {
  25. DefaultUserConfiguration = new UserConfiguration();
  26. UserConfigurations = new Dictionary<string, UserConfiguration>();
  27. DeviceNames = new List<string>();
  28. }
  29. }
  30. }