2021-05-06 15:39:20 -07:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 12:56:24 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 13:01:16 -07:00
|
|
|
using System;
|
2018-12-27 16:27:57 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2019-01-13 12:25:32 -07:00
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.LiveTv
|
|
|
|
{
|
|
|
|
public interface IListingsProvider
|
|
|
|
{
|
|
|
|
string Name { get; }
|
2019-09-25 08:19:48 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
string Type { get; }
|
2019-09-25 08:19:48 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
Task<IEnumerable<ProgramInfo>> GetProgramsAsync(ListingsProviderInfo info, string channelId, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken);
|
2019-09-25 08:19:48 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
Task Validate(ListingsProviderInfo info, bool validateLogin, bool validateListings);
|
2019-09-25 08:19:48 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location);
|
2019-09-25 08:19:48 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
Task<List<ChannelInfo>> GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|