mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
57 lines
2.1 KiB
C#
57 lines
2.1 KiB
C#
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Model.Chapters;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.Chapters
|
|
{
|
|
/// <summary>
|
|
/// Interface IChapterManager
|
|
/// </summary>
|
|
public interface IChapterManager
|
|
{
|
|
/// <summary>
|
|
/// Adds the parts.
|
|
/// </summary>
|
|
/// <param name="chapterProviders">The chapter providers.</param>
|
|
void AddParts(IEnumerable<IChapterProvider> chapterProviders);
|
|
|
|
/// <summary>
|
|
/// Searches the specified video.
|
|
/// </summary>
|
|
/// <param name="video">The video.</param>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>Task{IEnumerable{RemoteChapterResult}}.</returns>
|
|
Task<IEnumerable<RemoteChapterResult>> Search(Video video, CancellationToken cancellationToken);
|
|
|
|
/// <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);
|
|
|
|
/// <summary>
|
|
/// Gets the providers.
|
|
/// </summary>
|
|
/// <param name="itemId">The item identifier.</param>
|
|
/// <returns>IEnumerable{ChapterProviderInfo}.</returns>
|
|
IEnumerable<ChapterProviderInfo> GetProviders(string itemId);
|
|
|
|
/// <summary>
|
|
/// Gets the providers.
|
|
/// </summary>
|
|
/// <returns>IEnumerable{ChapterProviderInfo}.</returns>
|
|
IEnumerable<ChapterProviderInfo> GetProviders();
|
|
}
|
|
}
|