2
0

ISessionController.cs 873 B

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