using MediaBrowser.Model.Configuration; using System.Windows; namespace MediaBrowser.UI.Configuration { /// /// This is the UI's device configuration that applies regardless of which user is logged in. /// public class UIApplicationConfiguration : BaseApplicationConfiguration { /// /// Gets or sets the server host name (myserver or 192.168.x.x) /// /// The name of the server host. public string ServerHostName { get; set; } /// /// Gets or sets the port number used by the API /// /// The server API port. public int ServerApiPort { get; set; } /// /// Gets or sets the player configurations. /// /// The player configurations. public PlayerConfiguration[] MediaPlayers { get; set; } /// /// Gets or sets the state of the window. /// /// The state of the window. public WindowState? WindowState { get; set; } /// /// Gets or sets the window top. /// /// The window top. public double? WindowTop { get; set; } /// /// Gets or sets the window left. /// /// The window left. public double? WindowLeft { get; set; } /// /// Gets or sets the width of the window. /// /// The width of the window. public double? WindowWidth { get; set; } /// /// Gets or sets the height of the window. /// /// The height of the window. public double? WindowHeight { get; set; } /// /// Initializes a new instance of the class. /// public UIApplicationConfiguration() : base() { ServerHostName = "localhost"; ServerApiPort = 8096; // Need a different default than the server LegacyWebSocketPortNumber = 8946; } } }