2014-06-06 10:14:02 -07:00
|
|
|
|
using MediaBrowser.Controller.Providers;
|
2014-03-18 10:05:57 -07:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2014-03-11 19:11:01 -07:00
|
|
|
|
using System.Collections.Generic;
|
2014-03-09 15:14:44 -07:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Channels
|
|
|
|
|
{
|
|
|
|
|
public interface IChannel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
string Name { get; }
|
|
|
|
|
|
2014-06-07 12:46:24 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the description.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The description.</value>
|
|
|
|
|
string Description { get; }
|
|
|
|
|
|
2014-05-18 15:26:06 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the data version.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The data version.</value>
|
|
|
|
|
string DataVersion { get; }
|
|
|
|
|
|
2014-05-23 16:58:28 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the home page URL.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The home page URL.</value>
|
|
|
|
|
string HomePageUrl { get; }
|
|
|
|
|
|
2014-06-06 10:14:02 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the parental rating.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The parental rating.</value>
|
|
|
|
|
ChannelParentalRating ParentalRating { get; }
|
|
|
|
|
|
2014-03-09 15:14:44 -07:00
|
|
|
|
/// <summary>
|
2014-05-02 21:20:04 -07:00
|
|
|
|
/// Gets the channel information.
|
2014-03-09 15:14:44 -07:00
|
|
|
|
/// </summary>
|
2014-05-23 16:58:28 -07:00
|
|
|
|
/// <returns>ChannelFeatures.</returns>
|
2014-05-27 10:57:29 -07:00
|
|
|
|
InternalChannelFeatures GetChannelFeatures();
|
2014-03-09 15:14:44 -07:00
|
|
|
|
|
2014-03-17 18:45:41 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether [is enabled for] [the specified user].
|
|
|
|
|
/// </summary>
|
2014-06-06 10:14:02 -07:00
|
|
|
|
/// <param name="userId">The user identifier.</param>
|
2014-03-17 18:45:41 -07:00
|
|
|
|
/// <returns><c>true</c> if [is enabled for] [the specified user]; otherwise, <c>false</c>.</returns>
|
2014-06-06 10:14:02 -07:00
|
|
|
|
bool IsEnabledFor(string userId);
|
2014-06-02 12:32:41 -07:00
|
|
|
|
|
2014-03-09 15:14:44 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the channel items.
|
|
|
|
|
/// </summary>
|
2014-03-18 10:05:57 -07:00
|
|
|
|
/// <param name="query">The query.</param>
|
2014-03-09 15:14:44 -07:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{IEnumerable{ChannelItem}}.</returns>
|
2014-03-18 10:05:57 -07:00
|
|
|
|
Task<ChannelItemResult> GetChannelItems(InternalChannelItemQuery query, CancellationToken cancellationToken);
|
2014-03-09 15:14:44 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-03-18 10:05:57 -07:00
|
|
|
|
/// Gets the channel image.
|
2014-03-09 15:14:44 -07:00
|
|
|
|
/// </summary>
|
2014-03-18 10:05:57 -07:00
|
|
|
|
/// <param name="type">The type.</param>
|
2014-03-09 15:14:44 -07:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2014-03-18 10:05:57 -07:00
|
|
|
|
/// <returns>Task{DynamicImageInfo}.</returns>
|
|
|
|
|
Task<DynamicImageResponse> GetChannelImage(ImageType type, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the supported channel images.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>IEnumerable{ImageType}.</returns>
|
|
|
|
|
IEnumerable<ImageType> GetSupportedChannelImages();
|
2014-03-09 15:14:44 -07:00
|
|
|
|
}
|
|
|
|
|
}
|