IListingsProvider.cs 864 B

12345678910111213141516171819202122232425262728
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. using MediaBrowser.Model.Dto;
  8. using MediaBrowser.Model.LiveTv;
  9. namespace MediaBrowser.Controller.LiveTv
  10. {
  11. public interface IListingsProvider
  12. {
  13. string Name { get; }
  14. string Type { get; }
  15. Task<IEnumerable<ProgramInfo>> GetProgramsAsync(ListingsProviderInfo info, string channelId, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken);
  16. Task Validate(ListingsProviderInfo info, bool validateLogin, bool validateListings);
  17. Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location);
  18. Task<List<ChannelInfo>> GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken);
  19. }
  20. }