jellyfin/MediaBrowser.Model/ApiClient/IServerEvents.cs

135 lines
5.1 KiB
C#
Raw Normal View History

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-10-08 23:31:44 +00:00
event EventHandler<GenericEventArgs<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>
2014-10-08 23:31:44 +00:00
event EventHandler<GenericEventArgs<SessionUpdatesEventArgs>> SessionsUpdated;
2013-10-09 00:14:42 +00:00
/// <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;
2014-10-08 23:31:44 +00:00
/// <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;
2013-10-09 00:14:42 +00:00
}
}