jellyfin/MediaBrowser.Controller/Channels/IChannel.cs

77 lines
2.5 KiB
C#
Raw Normal View History

2014-06-06 10:14:02 -07:00
using MediaBrowser.Controller.Providers;
2014-03-18 10:05:57 -07:00
using MediaBrowser.Model.Entities;
using System.Collections.Generic;
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; }
/// <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; }
/// <summary>
2014-05-02 21:20:04 -07:00
/// Gets the channel information.
/// </summary>
/// <returns>ChannelFeatures.</returns>
2014-05-27 10:57:29 -07:00
InternalChannelFeatures GetChannelFeatures();
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
/// <summary>
/// Gets the channel items.
/// </summary>
2014-03-18 10:05:57 -07:00
/// <param name="query">The query.</param>
/// <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);
/// <summary>
2014-03-18 10:05:57 -07:00
/// Gets the channel image.
/// </summary>
2014-03-18 10:05:57 -07:00
/// <param name="type">The type.</param>
/// <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();
}
}