IChapterManager.cs 667 B

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