From 767cdc1f6f6a63ce997fc9476911e2c361f9d402 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 20 Feb 2013 20:33:05 -0500 Subject: Pushing missing changes --- .../Configuration/UIApplicationConfiguration.cs | 99 ++++++++++++++++------ 1 file changed, 72 insertions(+), 27 deletions(-) (limited to 'MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs') diff --git a/MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs b/MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs index 59c6251786..7038339249 100644 --- a/MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs +++ b/MediaBrowser.UI/Configuration/UIApplicationConfiguration.cs @@ -1,27 +1,72 @@ -using MediaBrowser.Model.Configuration; - -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) - /// - public string ServerHostName { get; set; } - - /// - /// Gets or sets the port number used by the API - /// - public int ServerApiPort { get; set; } - - public UIApplicationConfiguration() - : base() - { - ServerHostName = "localhost"; - ServerApiPort = 8096; - } - } -} +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; + } + } +} -- cgit v1.2.3