mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
add connect to startup wizard
This commit is contained in:
@@ -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<ServerInfo> Servers { get; set; }
|
||||
public IApiClient ApiClient { get; set; }
|
||||
public ConnectUser ConnectUser { get; set; }
|
||||
|
||||
public ConnectionResult()
|
||||
{
|
||||
|
||||
@@ -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].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<ConnectionResult>> Connected;
|
||||
/// <summary>
|
||||
/// Occurs when [local user sign in].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<UserDto>> LocalUserSignIn;
|
||||
/// <summary>
|
||||
/// Occurs when [connect user sign in].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<ConnectUser>> ConnectUserSignIn;
|
||||
/// <summary>
|
||||
/// Occurs when [local user sign out].
|
||||
/// </summary>
|
||||
event EventHandler<EventArgs> LocalUserSignOut;
|
||||
/// <summary>
|
||||
/// Occurs when [connect user sign out].
|
||||
/// </summary>
|
||||
event EventHandler<EventArgs> ConnectUserSignOut;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [remote logged out].
|
||||
/// Gets the connect user.
|
||||
/// </summary>
|
||||
event EventHandler<EventArgs> RemoteLoggedOut;
|
||||
|
||||
/// <value>The connect user.</value>
|
||||
ConnectUser ConnectUser { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the API client.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user