using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Chapters;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Chapters
{
    public interface IChapterProvider
    {
        /// 
        /// Gets the name.
        /// 
        /// The name.
        string Name { get; }
        /// 
        /// Gets the supported media types.
        /// 
        /// The supported media types.
        IEnumerable SupportedMediaTypes { get; }
        /// 
        /// 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);
    }
}