using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Providers;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Subtitles
{
public interface ISubtitleProvider
{
///
/// Gets the name.
///
/// The name.
string Name { get; }
///
/// Gets the supported media types.
///
/// The supported media types.
IEnumerable SupportedMediaTypes { get; }
///
/// Searches the subtitles.
///
/// The request.
/// The cancellation token.
/// Task{IEnumerable{RemoteSubtitleInfo}}.
Task> Search(SubtitleSearchRequest request, CancellationToken cancellationToken);
///
/// Gets the subtitles.
///
/// The identifier.
/// The cancellation token.
/// Task{SubtitleResponse}.
Task GetSubtitles(string id, CancellationToken cancellationToken);
}
}