Interface IChannel
Namespace: MediaBrowser.Controller.Channels
Assembly: MediaBrowser.Controller.dll
Syntax
public interface IChannel
Properties
Description
Gets the description.
Declaration
string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The description. |
Name
Gets the name.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name. |
ParentalRating
Gets the parental rating.
Declaration
ChannelParentalRating ParentalRating { get; }
Property Value
Type | Description |
---|---|
ChannelParentalRating | The parental rating. |
Methods
GetChannelImage(ImageType, CancellationToken)
Gets the channel image.
Declaration
Task<DynamicImageResponse> GetChannelImage(ImageType type, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ImageType | type | The type. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DynamicImageResponse> | Task{DynamicImageInfo}. |
GetChannelItems(InternalChannelItemQuery, CancellationToken)
Gets the channel items.
Declaration
Task<ChannelItemResult> GetChannelItems(InternalChannelItemQuery query, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
InternalChannelItemQuery | query | The query. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ChannelItemResult> |
GetSupportedChannelImages()
Gets the supported channel images.
Declaration
IEnumerable<ImageType> GetSupportedChannelImages()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ImageType> | IEnumerable{ImageType}. |