IListingsProvider.cs 845 B

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