From 3be4aa8dc729f5899658790f43a1d1c182e7a243 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 19 Oct 2014 23:04:45 -0400 Subject: add connect to startup wizard --- MediaBrowser.Model/ApiClient/ConnectionResult.cs | 4 +++- MediaBrowser.Model/ApiClient/IConnectionManager.cs | 27 ++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) (limited to 'MediaBrowser.Model/ApiClient') diff --git a/MediaBrowser.Model/ApiClient/ConnectionResult.cs b/MediaBrowser.Model/ApiClient/ConnectionResult.cs index 86c94c3d58..12a80ee159 100644 --- a/MediaBrowser.Model/ApiClient/ConnectionResult.cs +++ b/MediaBrowser.Model/ApiClient/ConnectionResult.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using MediaBrowser.Model.Connect; +using System.Collections.Generic; namespace MediaBrowser.Model.ApiClient { @@ -7,6 +8,7 @@ namespace MediaBrowser.Model.ApiClient public ConnectionState State { get; set; } public List Servers { get; set; } public IApiClient ApiClient { get; set; } + public ConnectUser ConnectUser { get; set; } public ConnectionResult() { diff --git a/MediaBrowser.Model/ApiClient/IConnectionManager.cs b/MediaBrowser.Model/ApiClient/IConnectionManager.cs index 45eaaecc82..c649ef756d 100644 --- a/MediaBrowser.Model/ApiClient/IConnectionManager.cs +++ b/MediaBrowser.Model/ApiClient/IConnectionManager.cs @@ -1,8 +1,8 @@ -using System.Collections.Generic; -using MediaBrowser.Model.Connect; +using MediaBrowser.Model.Connect; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Events; using System; +using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -14,12 +14,29 @@ namespace MediaBrowser.Model.ApiClient /// Occurs when [connected]. /// event EventHandler> Connected; + /// + /// Occurs when [local user sign in]. + /// + event EventHandler> LocalUserSignIn; + /// + /// Occurs when [connect user sign in]. + /// + event EventHandler> ConnectUserSignIn; + /// + /// Occurs when [local user sign out]. + /// + event EventHandler LocalUserSignOut; + /// + /// Occurs when [connect user sign out]. + /// + event EventHandler ConnectUserSignOut; /// - /// Occurs when [remote logged out]. + /// Gets the connect user. /// - event EventHandler RemoteLoggedOut; - + /// The connect user. + ConnectUser ConnectUser { get; } + /// /// Gets the API client. /// -- cgit v1.2.3