2014-05-08 20:09:53 +00:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using MediaBrowser.Model.Events;
|
|
|
|
|
using MediaBrowser.Model.Plugins;
|
|
|
|
|
using MediaBrowser.Model.Session;
|
|
|
|
|
using MediaBrowser.Model.Tasks;
|
|
|
|
|
using MediaBrowser.Model.Updates;
|
|
|
|
|
using System;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.ApiClient
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface IServerEvents
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IServerEvents
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [user deleted].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<string>> UserDeleted;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [scheduled task ended].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<TaskResult>> ScheduledTaskEnded;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [package installing].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstalling;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [package installation failed].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationFailed;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [package installation completed].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCompleted;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [package installation cancelled].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCancelled;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [user updated].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<UserDto>> UserUpdated;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [plugin uninstalled].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<PluginInfo>> PluginUninstalled;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [library changed].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<LibraryUpdateInfo>> LibraryChanged;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [browse command].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<BrowseRequest>> BrowseCommand;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [play command].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<PlayRequest>> PlayCommand;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [playstate command].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<PlaystateRequest>> PlaystateCommand;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [message command].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<MessageCommand>> MessageCommand;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [system command].
|
|
|
|
|
/// </summary>
|
2014-03-31 21:04:22 +00:00
|
|
|
|
event EventHandler<GeneralCommandEventArgs> GeneralCommand;
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [notification added].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<EventArgs> NotificationAdded;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [notification updated].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<EventArgs> NotificationUpdated;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [notifications marked read].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<EventArgs> NotificationsMarkedRead;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [server restarting].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<EventArgs> ServerRestarting;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [server shutting down].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<EventArgs> ServerShuttingDown;
|
|
|
|
|
/// <summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
/// Occurs when [send text command].
|
|
|
|
|
/// </summary>
|
2014-05-09 01:49:12 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<string>> SendStringCommand;
|
2014-05-08 20:09:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [set volume command].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<GenericEventArgs<int>> SetVolumeCommand;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [set audio stream index command].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<GenericEventArgs<int>> SetAudioStreamIndexCommand;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [set video stream index command].
|
|
|
|
|
/// </summary>
|
2014-05-09 01:49:12 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<int>> SetSubtitleStreamIndexCommand;
|
2014-05-08 20:09:53 +00:00
|
|
|
|
/// <summary>
|
2013-10-09 00:14:42 +00:00
|
|
|
|
/// Occurs when [sessions updated].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<SessionUpdatesEventArgs> SessionsUpdated;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [restart required].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<EventArgs> RestartRequired;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [user data changed].
|
|
|
|
|
/// </summary>
|
2014-05-08 20:09:53 +00:00
|
|
|
|
event EventHandler<GenericEventArgs<UserDataChangeInfo>> UserDataChanged;
|
2013-10-16 03:04:59 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [connected].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<EventArgs> Connected;
|
2013-10-16 14:22:37 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a value indicating whether this instance is connected.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if this instance is connected; otherwise, <c>false</c>.</value>
|
|
|
|
|
bool IsConnected { get; }
|
2013-10-09 00:14:42 +00:00
|
|
|
|
}
|
|
|
|
|
}
|