using MediaBrowser.Model.LiveTv;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.LiveTv
{
///
/// Represents a single live tv back end (next pvr, media portal, etc).
///
public interface ILiveTvService
{
///
/// Gets the name.
///
/// The name.
string Name { get; }
///
/// Gets the channels async.
///
/// The cancellation token.
/// Task{IEnumerable{ChannelInfo}}.
Task> GetChannelsAsync(CancellationToken cancellationToken);
///
/// Gets the recordings asynchronous.
///
/// The cancellation token.
/// Task{IEnumerable{RecordingInfo}}.
Task> GetRecordingsAsync(CancellationToken cancellationToken);
///
/// Gets the epg asynchronous.
///
/// The channel identifier.
/// The cancellation token.
/// Task{EpgFullInfo}.
Task GetEpgAsync(string channelId, CancellationToken cancellationToken);
}
}