jellyfin/MediaBrowser.Model/ApiClient/IServerEvents.cs

123 lines
4.6 KiB
C#
Raw Normal View History

2014-05-08 22:09:53 +02: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 02:14:42 +02:00
namespace MediaBrowser.Model.ApiClient
{
/// <summary>
/// Interface IServerEvents
/// </summary>
public interface IServerEvents
{
/// <summary>
/// Occurs when [user deleted].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<string>> UserDeleted;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [scheduled task ended].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<TaskResult>> ScheduledTaskEnded;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [package installing].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstalling;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [package installation failed].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationFailed;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [package installation completed].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCompleted;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [package installation cancelled].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<InstallationInfo>> PackageInstallationCancelled;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [user updated].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<UserDto>> UserUpdated;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [plugin uninstalled].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<PluginInfo>> PluginUninstalled;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [library changed].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<LibraryUpdateInfo>> LibraryChanged;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [browse command].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<BrowseRequest>> BrowseCommand;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [play command].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<PlayRequest>> PlayCommand;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [playstate command].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<PlaystateRequest>> PlaystateCommand;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [message command].
/// </summary>
2014-05-08 22:09:53 +02:00
event EventHandler<GenericEventArgs<MessageCommand>> MessageCommand;
2013-10-09 02:14:42 +02:00
/// <summary>
/// Occurs when [system command].
/// </summary>
2014-03-31 23:04:22 +02:00
event EventHandler<GeneralCommandEventArgs> GeneralCommand;
2013-10-09 02:14:42 +02: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 22:09:53 +02:00
/// Occurs when [send text command].
/// </summary>
2014-05-09 03:49:12 +02:00
event EventHandler<GenericEventArgs<string>> SendStringCommand;
2014-05-08 22:09:53 +02: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 03:49:12 +02:00
event EventHandler<GenericEventArgs<int>> SetSubtitleStreamIndexCommand;
2014-05-08 22:09:53 +02:00
/// <summary>
2013-10-09 02:14:42 +02: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 22:09:53 +02:00
event EventHandler<GenericEventArgs<UserDataChangeInfo>> UserDataChanged;
2013-10-09 02:14:42 +02:00
}
}