update connection manager

This commit is contained in:
Luke Pulverenti 2014-10-03 23:18:57 -04:00
parent c8f24fc93a
commit e83a3e710b
6 changed files with 19 additions and 29 deletions

View File

@ -2,6 +2,7 @@
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Events;
using MediaBrowser.Model.Globalization;
using MediaBrowser.Model.LiveTv;
using MediaBrowser.Model.Notifications;
@ -28,10 +29,15 @@ namespace MediaBrowser.Model.ApiClient
public interface IApiClient : IServerEvents, IDisposable
{
/// <summary>
/// Occurs when [HTTP response received].
/// Occurs when [remote logged out].
/// </summary>
event EventHandler<HttpResponseEventArgs> HttpResponseReceived;
event EventHandler<EventArgs> RemoteLoggedOut;
/// <summary>
/// Occurs when [authenticated].
/// </summary>
event EventHandler<GenericEventArgs<AuthenticationResult>> Authenticated;
/// <summary>
/// Gets the API URL.
/// </summary>

View File

@ -1,6 +1,5 @@
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Events;
using MediaBrowser.Model.Users;
using System;
using System.Threading;
using System.Threading.Tasks;
@ -14,6 +13,11 @@ namespace MediaBrowser.Model.ApiClient
/// </summary>
event EventHandler<GenericEventArgs<ConnectionResult>> Connected;
/// <summary>
/// Occurs when [remote logged out].
/// </summary>
event EventHandler<EventArgs> RemoteLoggedOut;
/// <summary>
/// Gets the API client.
/// </summary>
@ -49,25 +53,5 @@ namespace MediaBrowser.Model.ApiClient
/// </summary>
/// <returns>Task&lt;ConnectionResult&gt;.</returns>
Task<ConnectionResult> Logout();
/// <summary>
/// Authenticates with a specific server
/// </summary>
/// <param name="server">The server.</param>
/// <param name="username">The username.</param>
/// <param name="hash">The hash.</param>
/// <param name="rememberLogin">if set to <c>true</c> [remember login].</param>
/// <returns>Task.</returns>
Task<AuthenticationResult> Authenticate(ServerInfo server, string username, byte[] hash, bool rememberLogin);
/// <summary>
/// Authenticates with a specific server
/// </summary>
/// <param name="apiClient">The API client.</param>
/// <param name="username">The username.</param>
/// <param name="hash">The hash.</param>
/// <param name="rememberLogin">if set to <c>true</c> [remember login].</param>
/// <returns>Task.</returns>
Task<AuthenticationResult> Authenticate(IApiClient apiClient, string username, byte[] hash, bool rememberLogin);
}
}

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common.Internal</id>
<version>3.0.460</version>
<version>3.0.462</version>
<title>MediaBrowser.Common.Internal</title>
<authors>Luke</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.460" />
<dependency id="MediaBrowser.Common" version="3.0.462" />
<dependency id="NLog" version="3.1.0.0" />
<dependency id="SimpleInjector" version="2.5.2" />
<dependency id="sharpcompress" version="0.10.2" />

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common</id>
<version>3.0.460</version>
<version>3.0.462</version>
<title>MediaBrowser.Common</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Model.Signed</id>
<version>3.0.460</version>
<version>3.0.462</version>
<title>MediaBrowser.Model - Signed Edition</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>MediaBrowser.Server.Core</id>
<version>3.0.460</version>
<version>3.0.462</version>
<title>Media Browser.Server.Core</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains core components required to build plugins for Media Browser Server.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.460" />
<dependency id="MediaBrowser.Common" version="3.0.462" />
</dependencies>
</metadata>
<files>