mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
extract classes
This commit is contained in:
8
MediaBrowser.Model/ApiClient/ConnectionMode.cs
Normal file
8
MediaBrowser.Model/ApiClient/ConnectionMode.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
public enum ConnectionMode
|
||||
{
|
||||
Local = 1,
|
||||
Remote = 2
|
||||
}
|
||||
}
|
||||
@@ -12,17 +12,4 @@ namespace MediaBrowser.Model.ApiClient
|
||||
State = ConnectionState.Unavailable;
|
||||
}
|
||||
}
|
||||
|
||||
public enum ConnectionState
|
||||
{
|
||||
Unavailable = 1,
|
||||
ServerSignIn = 2,
|
||||
SignedIn = 3
|
||||
}
|
||||
|
||||
public enum ConnectionMode
|
||||
{
|
||||
Local = 1,
|
||||
Remote = 2
|
||||
}
|
||||
}
|
||||
|
||||
9
MediaBrowser.Model/ApiClient/ConnectionState.cs
Normal file
9
MediaBrowser.Model/ApiClient/ConnectionState.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
public enum ConnectionState
|
||||
{
|
||||
Unavailable = 1,
|
||||
ServerSignIn = 2,
|
||||
SignedIn = 3
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,11 @@
|
||||
using MediaBrowser.Model.Session;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Class SystemCommandEventArgs
|
||||
/// </summary>
|
||||
public class GeneralCommandEventArgs : EventArgs
|
||||
public class GeneralCommandEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the command.
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// <summary>
|
||||
/// Occurs when [system command].
|
||||
/// </summary>
|
||||
event EventHandler<GeneralCommandEventArgs> GeneralCommand;
|
||||
event EventHandler<GenericEventArgs<GeneralCommandEventArgs>> GeneralCommand;
|
||||
/// <summary>
|
||||
/// Occurs when [notification added].
|
||||
/// </summary>
|
||||
@@ -109,7 +109,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// <summary>
|
||||
/// Occurs when [sessions updated].
|
||||
/// </summary>
|
||||
event EventHandler<SessionUpdatesEventArgs> SessionsUpdated;
|
||||
event EventHandler<GenericEventArgs<SessionUpdatesEventArgs>> SessionsUpdated;
|
||||
/// <summary>
|
||||
/// Occurs when [restart required].
|
||||
/// </summary>
|
||||
@@ -118,5 +118,17 @@ namespace MediaBrowser.Model.ApiClient
|
||||
/// Occurs when [user data changed].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<UserDataChangeInfo>> UserDataChanged;
|
||||
/// <summary>
|
||||
/// Occurs when [playback start].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<SessionInfoDto>> PlaybackStart;
|
||||
/// <summary>
|
||||
/// Occurs when [playback stopped].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<SessionInfoDto>> PlaybackStopped;
|
||||
/// <summary>
|
||||
/// Occurs when [session ended].
|
||||
/// </summary>
|
||||
event EventHandler<GenericEventArgs<SessionInfoDto>> SessionEnded;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,15 +19,4 @@ namespace MediaBrowser.Model.ApiClient
|
||||
LocalAddress = "http://localhost:8096";
|
||||
}
|
||||
}
|
||||
|
||||
public class WakeOnLanInfo
|
||||
{
|
||||
public string MacAddress { get; set; }
|
||||
public int Port { get; set; }
|
||||
|
||||
public WakeOnLanInfo()
|
||||
{
|
||||
Port = 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
using System;
|
||||
using MediaBrowser.Model.Session;
|
||||
using MediaBrowser.Model.Session;
|
||||
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Class SessionUpdatesEventArgs
|
||||
/// </summary>
|
||||
public class SessionUpdatesEventArgs : EventArgs
|
||||
public class SessionUpdatesEventArgs
|
||||
{
|
||||
public SessionInfoDto[] Sessions { get; set; }
|
||||
}
|
||||
|
||||
13
MediaBrowser.Model/ApiClient/WakeOnLanInfo.cs
Normal file
13
MediaBrowser.Model/ApiClient/WakeOnLanInfo.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
public class WakeOnLanInfo
|
||||
{
|
||||
public string MacAddress { get; set; }
|
||||
public int Port { get; set; }
|
||||
|
||||
public WakeOnLanInfo()
|
||||
{
|
||||
Port = 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user