ISessionController.cs 898 B

12345678910111213141516171819202122232425
  1. using System.Threading;
  2. using System.Threading.Tasks;
  3. namespace MediaBrowser.Controller.Session
  4. {
  5. public interface ISessionController
  6. {
  7. /// <summary>
  8. /// Gets a value indicating whether this instance is session active.
  9. /// </summary>
  10. /// <value><c>true</c> if this instance is session active; otherwise, <c>false</c>.</value>
  11. bool IsSessionActive { get; }
  12. /// <summary>
  13. /// Gets a value indicating whether [supports media remote control].
  14. /// </summary>
  15. /// <value><c>true</c> if [supports media remote control]; otherwise, <c>false</c>.</value>
  16. bool SupportsMediaControl { get; }
  17. /// <summary>
  18. /// Sends the message.
  19. /// </summary>
  20. Task SendMessage<T>(string name, string messageId, T data, ISessionController[] allControllers, CancellationToken cancellationToken);
  21. }
  22. }