IChapterManager.cs 1000 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. using MediaBrowser.Model.Configuration;
  5. using MediaBrowser.Model.Entities;
  6. namespace MediaBrowser.Controller.Chapters
  7. {
  8. /// <summary>
  9. /// Interface IChapterManager
  10. /// </summary>
  11. public interface IChapterManager
  12. {
  13. /// <summary>
  14. /// Gets the chapters.
  15. /// </summary>
  16. /// <param name="itemId">The item identifier.</param>
  17. /// <returns>List{ChapterInfo}.</returns>
  18. IEnumerable<ChapterInfo> GetChapters(string itemId);
  19. /// <summary>
  20. /// Saves the chapters.
  21. /// </summary>
  22. /// <param name="itemId">The item identifier.</param>
  23. /// <param name="chapters">The chapters.</param>
  24. /// <param name="cancellationToken">The cancellation token.</param>
  25. /// <returns>Task.</returns>
  26. Task SaveChapters(string itemId, List<ChapterInfo> chapters, CancellationToken cancellationToken);
  27. }
  28. }