IListingsProvider.cs 808 B

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