diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-11 18:38:10 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-11 18:38:10 -0400 |
| commit | 0d605b8672ece5129e833a2e9cde11a8aaf1b62a (patch) | |
| tree | 6567f39ec75c3b7a89681940ab0cd74cab8f77de /MediaBrowser.Controller/Chapters/IChapterProvider.cs | |
| parent | 8bc41832e620b416159b8303bca9960b416a1b10 (diff) | |
update subtitle interface
Diffstat (limited to 'MediaBrowser.Controller/Chapters/IChapterProvider.cs')
| -rw-r--r-- | MediaBrowser.Controller/Chapters/IChapterProvider.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Chapters/IChapterProvider.cs b/MediaBrowser.Controller/Chapters/IChapterProvider.cs new file mode 100644 index 000000000..a7505347b --- /dev/null +++ b/MediaBrowser.Controller/Chapters/IChapterProvider.cs @@ -0,0 +1,39 @@ +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 + { + /// <summary> + /// Gets the name. + /// </summary> + /// <value>The name.</value> + string Name { get; } + + /// <summary> + /// Gets the supported media types. + /// </summary> + /// <value>The supported media types.</value> + IEnumerable<VideoContentType> SupportedMediaTypes { get; } + + /// <summary> + /// Searches the specified request. + /// </summary> + /// <param name="request">The request.</param> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns>Task{IEnumerable{RemoteChapterResult}}.</returns> + Task<IEnumerable<RemoteChapterResult>> Search(ChapterSearchRequest request, CancellationToken cancellationToken); + + /// <summary> + /// Gets the chapters. + /// </summary> + /// <param name="id">The identifier.</param> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns>Task{ChapterResponse}.</returns> + Task<ChapterResponse> GetChapters(string id, CancellationToken cancellationToken); + } +} |
