aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Session/ISessionManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-24 11:42:30 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-24 11:42:30 -0400
commitc61cc4a304978a59f66c86c3618f8f6dd8ccca7b (patch)
treeb42db241185bac265c315998a880a24d24b56b04 /MediaBrowser.Controller/Session/ISessionManager.cs
parent04319900f9ac6ebac0668927ddb38212f37477d0 (diff)
support more kinds of remote control besides web socket
Diffstat (limited to 'MediaBrowser.Controller/Session/ISessionManager.cs')
-rw-r--r--MediaBrowser.Controller/Session/ISessionManager.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.cs
index fba1d26e8..f8f7ded2b 100644
--- a/MediaBrowser.Controller/Session/ISessionManager.cs
+++ b/MediaBrowser.Controller/Session/ISessionManager.cs
@@ -1,7 +1,9 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
+using MediaBrowser.Model.Session;
using System;
using System.Collections.Generic;
+using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Session
@@ -12,6 +14,12 @@ namespace MediaBrowser.Controller.Session
public interface ISessionManager
{
/// <summary>
+ /// Adds the parts.
+ /// </summary>
+ /// <param name="remoteControllers">The remote controllers.</param>
+ void AddParts(IEnumerable<ISessionRemoteController> remoteControllers);
+
+ /// <summary>
/// Occurs when [playback start].
/// </summary>
event EventHandler<PlaybackProgressEventArgs> PlaybackStart;
@@ -72,5 +80,14 @@ namespace MediaBrowser.Controller.Session
/// <returns>Task.</returns>
/// <exception cref="System.ArgumentNullException"></exception>
Task OnPlaybackStopped(BaseItem item, long? positionTicks, Guid sessionId);
+
+ /// <summary>
+ /// Sends the system command.
+ /// </summary>
+ /// <param name="sessionId">The session id.</param>
+ /// <param name="command">The command.</param>
+ /// <param name="cancellationToken">The cancellation token.</param>
+ /// <returns>Task.</returns>
+ Task SendSystemCommand(Guid sessionId, SystemCommand command, CancellationToken cancellationToken);
}
} \ No newline at end of file