2
0

ISessionController.cs 905 B

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