2013-11-11 19:36:48 +00:00
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
|
|
|
|
using System.Collections.Generic;
|
2013-09-26 15:48:14 +00:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.LiveTv
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a single live tv back end (next pvr, media portal, etc).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ILiveTvService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the channels async.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{IEnumerable{ChannelInfo}}.</returns>
|
|
|
|
|
Task<IEnumerable<ChannelInfo>> GetChannelsAsync(CancellationToken cancellationToken);
|
2013-10-31 20:45:58 +00:00
|
|
|
|
|
2013-11-11 19:36:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the recordings asynchronous.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{IEnumerable{RecordingInfo}}.</returns>
|
2013-10-31 20:45:58 +00:00
|
|
|
|
Task<IEnumerable<RecordingInfo>> GetRecordingsAsync(CancellationToken cancellationToken);
|
2013-11-02 21:38:21 +00:00
|
|
|
|
|
2013-11-11 19:36:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the epg asynchronous.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="channelId">The channel identifier.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2013-11-11 20:17:35 +00:00
|
|
|
|
/// <returns>Task{EpgFullInfo}.</returns>
|
|
|
|
|
Task<EpgFullInfo> GetEpgAsync(string channelId, CancellationToken cancellationToken);
|
2013-09-26 15:48:14 +00:00
|
|
|
|
}
|
|
|
|
|
}
|