extract classes

This commit is contained in:
Luke Pulverenti
2014-10-08 19:31:44 -04:00
parent bebba65d61
commit d091fe0e6e
59 changed files with 655 additions and 422 deletions

View File

@@ -0,0 +1,8 @@
namespace MediaBrowser.Model.ApiClient
{
public enum ConnectionMode
{
Local = 1,
Remote = 2
}
}

View File

@@ -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
}
}

View File

@@ -0,0 +1,9 @@
namespace MediaBrowser.Model.ApiClient
{
public enum ConnectionState
{
Unavailable = 1,
ServerSignIn = 2,
SignedIn = 3
}
}

View File

@@ -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.

View File

@@ -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;
}
}

View File

@@ -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;
}
}
}

View File

@@ -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; }
}

View 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;
}
}
}