aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/LiveTv/IListingsProvider.cs
blob: 038ff2eaebc1dfe2347dd6e9dec6339e79c834b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma warning disable CS1591

using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.LiveTv;

namespace MediaBrowser.Controller.LiveTv
{
    public interface IListingsProvider
    {
        string Name { get; }

        string Type { get; }

        Task<IEnumerable<ProgramInfo>> GetProgramsAsync(ListingsProviderInfo info, string channelId, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken);

        Task Validate(ListingsProviderInfo info, bool validateLogin, bool validateListings);

        Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location);

        Task<List<ChannelInfo>> GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken);
    }
}