using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Chapters;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Chapters
{
///
/// Interface IChapterManager
///
public interface IChapterManager
{
///
/// Adds the parts.
///
/// The chapter providers.
void AddParts(IEnumerable chapterProviders);
///
/// Searches the specified video.
///
/// The video.
/// The cancellation token.
/// Task{IEnumerable{RemoteChapterResult}}.
Task> Search(Video video, CancellationToken cancellationToken);
///
/// Searches the specified request.
///
/// The request.
/// The cancellation token.
/// Task{IEnumerable{RemoteChapterResult}}.
Task> Search(ChapterSearchRequest request, CancellationToken cancellationToken);
///
/// Gets the chapters.
///
/// The identifier.
/// The cancellation token.
/// Task{ChapterResponse}.
Task GetChapters(string id, CancellationToken cancellationToken);
///
/// Gets the providers.
///
/// The item identifier.
/// IEnumerable{ChapterProviderInfo}.
IEnumerable GetProviders(string itemId);
///
/// Gets the providers.
///
/// IEnumerable{ChapterProviderInfo}.
IEnumerable GetProviders();
}
}