2015-07-23 06:23:22 -07:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
2015-07-22 22:25:55 -07:00
|
|
|
|
using System;
|
2015-07-20 21:22:46 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2015-07-20 11:32:55 -07:00
|
|
|
|
namespace MediaBrowser.Controller.LiveTv
|
|
|
|
|
{
|
|
|
|
|
public interface IListingsProvider
|
|
|
|
|
{
|
2015-07-22 22:25:55 -07:00
|
|
|
|
string Name { get; }
|
2015-07-23 06:23:22 -07:00
|
|
|
|
string Type { get; }
|
2015-10-10 17:39:30 -07:00
|
|
|
|
Task<IEnumerable<ProgramInfo>> GetProgramsAsync(ListingsProviderInfo info, string channelNumber, string channelName, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken);
|
2015-07-22 22:25:55 -07:00
|
|
|
|
Task AddMetadata(ListingsProviderInfo info, List<ChannelInfo> channels, CancellationToken cancellationToken);
|
2015-07-25 10:21:10 -07:00
|
|
|
|
Task Validate(ListingsProviderInfo info, bool validateLogin, bool validateListings);
|
2015-07-23 10:58:20 -07:00
|
|
|
|
Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location);
|
2016-06-07 22:24:25 -07:00
|
|
|
|
Task<List<ChannelInfo>> GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken);
|
2015-07-20 11:32:55 -07:00
|
|
|
|
}
|
|
|
|
|
}
|