2014-03-18 01:45:41 +00:00
|
|
|
|
using MediaBrowser.Model.Channels;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
using MediaBrowser.Model.Querying;
|
2014-03-09 22:14:44 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-03-18 01:45:41 +00:00
|
|
|
|
using System.Threading;
|
2014-03-09 22:14:44 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Channels
|
|
|
|
|
{
|
|
|
|
|
public interface IChannelManager
|
|
|
|
|
{
|
2014-03-18 01:45:41 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds the parts.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="channels">The channels.</param>
|
2014-05-03 23:38:23 +00:00
|
|
|
|
/// <param name="factories">The factories.</param>
|
|
|
|
|
void AddParts(IEnumerable<IChannel> channels, IEnumerable<IChannelFactory> factories);
|
2014-03-18 01:45:41 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the channels.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="query">The query.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{QueryResult{BaseItemDto}}.</returns>
|
|
|
|
|
Task<QueryResult<BaseItemDto>> GetChannels(ChannelQuery query, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the channel items.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="query">The query.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{QueryResult{BaseItemDto}}.</returns>
|
|
|
|
|
Task<QueryResult<BaseItemDto>> GetChannelItems(ChannelItemQuery query, CancellationToken cancellationToken);
|
2014-03-09 22:14:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|