jellyfin/MediaBrowser.Controller/LiveTv/IListingsProvider.cs

29 lines
864 B
C#
Raw Normal View History

#nullable disable
#pragma warning disable CS1591
using System;
2018-12-27 23:27:57 +00:00
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.LiveTv;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Controller.LiveTv
{
public interface IListingsProvider
{
string Name { get; }
2019-09-25 15:19:48 +00:00
2018-12-27 23:27:57 +00:00
string Type { get; }
2019-09-25 15:19:48 +00:00
2018-12-27 23:27:57 +00:00
Task<IEnumerable<ProgramInfo>> GetProgramsAsync(ListingsProviderInfo info, string channelId, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken);
2019-09-25 15:19:48 +00:00
2018-12-27 23:27:57 +00:00
Task Validate(ListingsProviderInfo info, bool validateLogin, bool validateListings);
2019-09-25 15:19:48 +00:00
2018-12-27 23:27:57 +00:00
Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location);
2019-09-25 15:19:48 +00:00
2018-12-27 23:27:57 +00:00
Task<List<ChannelInfo>> GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken);
}
}