jellyfin/MediaBrowser.Controller/LiveTv/IListingsProvider.cs

21 lines
953 B
C#
Raw Normal View History

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