ILiveTvService.cs 752 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MediaBrowser.Controller.LiveTv
  5. {
  6. /// <summary>
  7. /// Represents a single live tv back end (next pvr, media portal, etc).
  8. /// </summary>
  9. public interface ILiveTvService
  10. {
  11. /// <summary>
  12. /// Gets the name.
  13. /// </summary>
  14. /// <value>The name.</value>
  15. string Name { get; }
  16. /// <summary>
  17. /// Gets the channels async.
  18. /// </summary>
  19. /// <param name="cancellationToken">The cancellation token.</param>
  20. /// <returns>Task{IEnumerable{ChannelInfo}}.</returns>
  21. Task<IEnumerable<ChannelInfo>> GetChannelsAsync(CancellationToken cancellationToken);
  22. }
  23. }