diff options
| author | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
|---|---|---|
| committer | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
| commit | 48facb797ed912e4ea6b04b17d1ff190ac2daac4 (patch) | |
| tree | 8dae77a31670a888d733484cb17dd4077d5444e8 /MediaBrowser.Controller/Session/ISessionController.cs | |
| parent | c32d8656382a0eacb301692e0084377fc433ae9b (diff) | |
Update to 3.5.2 and .net core 2.1
Diffstat (limited to 'MediaBrowser.Controller/Session/ISessionController.cs')
| -rw-r--r-- | MediaBrowser.Controller/Session/ISessionController.cs | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/MediaBrowser.Controller/Session/ISessionController.cs b/MediaBrowser.Controller/Session/ISessionController.cs deleted file mode 100644 index 0d8c207b6..000000000 --- a/MediaBrowser.Controller/Session/ISessionController.cs +++ /dev/null @@ -1,121 +0,0 @@ -using MediaBrowser.Model.Entities; -using MediaBrowser.Model.Session; -using MediaBrowser.Model.System; -using System.Threading; -using System.Threading.Tasks; - -namespace MediaBrowser.Controller.Session -{ - public interface ISessionController - { - /// <summary> - /// Gets a value indicating whether this instance is session active. - /// </summary> - /// <value><c>true</c> if this instance is session active; otherwise, <c>false</c>.</value> - bool IsSessionActive { get; } - - /// <summary> - /// Gets a value indicating whether [supports media remote control]. - /// </summary> - /// <value><c>true</c> if [supports media remote control]; otherwise, <c>false</c>.</value> - bool SupportsMediaControl { get; } - - /// <summary> - /// Sends the play command. - /// </summary> - /// <param name="command">The command.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendPlayCommand(PlayRequest command, CancellationToken cancellationToken); - - /// <summary> - /// Sends the playstate command. - /// </summary> - /// <param name="command">The command.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendPlaystateCommand(PlaystateRequest command, CancellationToken cancellationToken); - - /// <summary> - /// Sends the generic command. - /// </summary> - /// <param name="command">The command.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendGeneralCommand(GeneralCommand command, CancellationToken cancellationToken); - - /// <summary> - /// Sends the library update info. - /// </summary> - /// <param name="info">The info.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendLibraryUpdateInfo(LibraryUpdateInfo info, CancellationToken cancellationToken); - - /// <summary> - /// Sends the restart required message. - /// </summary> - Task SendRestartRequiredNotification(CancellationToken cancellationToken); - - /// <summary> - /// Sends the user data change info. - /// </summary> - /// <param name="info">The info.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendUserDataChangeInfo(UserDataChangeInfo info, CancellationToken cancellationToken); - - /// <summary> - /// Sends the server shutdown notification. - /// </summary> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendServerShutdownNotification(CancellationToken cancellationToken); - - /// <summary> - /// Sends the session ended notification. - /// </summary> - /// <param name="sessionInfo">The session information.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendSessionEndedNotification(SessionInfoDto sessionInfo, CancellationToken cancellationToken); - - /// <summary> - /// Sends the playback start notification. - /// </summary> - /// <param name="sessionInfo">The session information.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendPlaybackStartNotification(SessionInfoDto sessionInfo, CancellationToken cancellationToken); - - /// <summary> - /// Sends the playback start notification. - /// </summary> - /// <param name="sessionInfo">The session information.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendPlaybackStoppedNotification(SessionInfoDto sessionInfo, CancellationToken cancellationToken); - - /// <summary> - /// Sends the server restart notification. - /// </summary> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendServerRestartNotification(CancellationToken cancellationToken); - - /// <summary> - /// Sends the message. - /// </summary> - /// <typeparam name="T"></typeparam> - /// <param name="name">The name.</param> - /// <param name="data">The data.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendMessage<T>(string name, T data, CancellationToken cancellationToken); - - /// <summary> - /// Called when [activity]. - /// </summary> - void OnActivity(); - } -} |
