using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Chapters;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Chapters
{
///
/// Interface IChapterManager
///
public interface IChapterManager
{
///
/// Adds the parts.
///
/// The chapter providers.
void AddParts(IEnumerable chapterProviders);
///
/// Gets the chapters.
///
/// The item identifier.
/// List{ChapterInfo}.
IEnumerable GetChapters(string itemId);
///
/// Saves the chapters.
///
/// The item identifier.
/// The chapters.
/// The cancellation token.
/// Task.
Task SaveChapters(string itemId, List chapters, CancellationToken cancellationToken);
///
/// 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();
///
/// Gets the configuration.
///
/// ChapterOptions.
ChapterOptions GetConfiguration();
}
}