jellyfin/MediaBrowser.Controller/LiveTv/IListingsProvider.cs

20 lines
844 B
C#
Raw Normal View History

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