UIApplicationConfiguration.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using MediaBrowser.Model.Configuration;
  2. using System.Windows;
  3. namespace MediaBrowser.UI.Configuration
  4. {
  5. /// <summary>
  6. /// This is the UI's device configuration that applies regardless of which user is logged in.
  7. /// </summary>
  8. public class UIApplicationConfiguration : BaseApplicationConfiguration
  9. {
  10. /// <summary>
  11. /// Gets or sets the server host name (myserver or 192.168.x.x)
  12. /// </summary>
  13. /// <value>The name of the server host.</value>
  14. public string ServerHostName { get; set; }
  15. /// <summary>
  16. /// Gets or sets the port number used by the API
  17. /// </summary>
  18. /// <value>The server API port.</value>
  19. public int ServerApiPort { get; set; }
  20. /// <summary>
  21. /// Gets or sets the player configurations.
  22. /// </summary>
  23. /// <value>The player configurations.</value>
  24. public PlayerConfiguration[] MediaPlayers { get; set; }
  25. /// <summary>
  26. /// Gets or sets the state of the window.
  27. /// </summary>
  28. /// <value>The state of the window.</value>
  29. public WindowState? WindowState { get; set; }
  30. /// <summary>
  31. /// Gets or sets the window top.
  32. /// </summary>
  33. /// <value>The window top.</value>
  34. public double? WindowTop { get; set; }
  35. /// <summary>
  36. /// Gets or sets the window left.
  37. /// </summary>
  38. /// <value>The window left.</value>
  39. public double? WindowLeft { get; set; }
  40. /// <summary>
  41. /// Gets or sets the width of the window.
  42. /// </summary>
  43. /// <value>The width of the window.</value>
  44. public double? WindowWidth { get; set; }
  45. /// <summary>
  46. /// Gets or sets the height of the window.
  47. /// </summary>
  48. /// <value>The height of the window.</value>
  49. public double? WindowHeight { get; set; }
  50. /// <summary>
  51. /// Initializes a new instance of the <see cref="UIApplicationConfiguration" /> class.
  52. /// </summary>
  53. public UIApplicationConfiguration()
  54. : base()
  55. {
  56. ServerHostName = "localhost";
  57. ServerApiPort = 8096;
  58. // Need a different default than the server
  59. LegacyWebSocketPortNumber = 8946;
  60. }
  61. }
  62. }