support more kinds of remote control besides web socket

This commit is contained in:
Luke Pulverenti
2013-09-24 11:42:30 -04:00
parent 04319900f9
commit c61cc4a304
8 changed files with 163 additions and 45 deletions

View File

@@ -0,0 +1,25 @@
using MediaBrowser.Model.Session;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Session
{
public interface ISessionRemoteController
{
/// <summary>
/// Supportses the specified session.
/// </summary>
/// <param name="session">The session.</param>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
bool Supports(SessionInfo session);
/// <summary>
/// Sends the system command.
/// </summary>
/// <param name="session">The session.</param>
/// <param name="command">The command.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task SendSystemCommand(SessionInfo session, SystemCommand command, CancellationToken cancellationToken);
}
}