ILiveTvService.cs 974 B

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