ILiveTvService.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using MediaBrowser.Model.LiveTv;
  2. using System.Collections.Generic;
  3. using System.Threading;
  4. using System.Threading.Tasks;
  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. /// <summary>
  24. /// Gets the recordings asynchronous.
  25. /// </summary>
  26. /// <param name="cancellationToken">The cancellation token.</param>
  27. /// <returns>Task{IEnumerable{RecordingInfo}}.</returns>
  28. Task<IEnumerable<RecordingInfo>> GetRecordingsAsync(CancellationToken cancellationToken);
  29. /// <summary>
  30. /// Gets the epg asynchronous.
  31. /// </summary>
  32. /// <param name="channelId">The channel identifier.</param>
  33. /// <param name="cancellationToken">The cancellation token.</param>
  34. /// <returns>Task{IEnumerable{EpgFullInfo}}.</returns>
  35. Task<IEnumerable<EpgFullInfo>> GetEpgAsync(string channelId, CancellationToken cancellationToken);
  36. }
  37. }