IChapterManager.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Dto;
  4. using MediaBrowser.Model.Entities;
  5. namespace MediaBrowser.Controller.Chapters
  6. {
  7. /// <summary>
  8. /// Interface IChapterManager.
  9. /// </summary>
  10. public interface IChapterManager
  11. {
  12. /// <summary>
  13. /// Saves the chapters.
  14. /// </summary>
  15. /// <param name="itemId">The item.</param>
  16. /// <param name="chapters">The set of chapters.</param>
  17. void SaveChapters(Guid itemId, IReadOnlyList<ChapterInfo> chapters);
  18. /// <summary>
  19. /// Gets all chapters associated with the baseItem.
  20. /// </summary>
  21. /// <param name="baseItem">The baseitem.</param>
  22. /// <returns>A readonly list of chapter instances.</returns>
  23. IReadOnlyList<ChapterInfo> GetChapters(BaseItemDto baseItem);
  24. /// <summary>
  25. /// Gets a single chapter of a BaseItem on a specific index.
  26. /// </summary>
  27. /// <param name="baseItem">The baseitem.</param>
  28. /// <param name="index">The index of that chapter.</param>
  29. /// <returns>A chapter instance.</returns>
  30. ChapterInfo? GetChapter(BaseItemDto baseItem, int index);
  31. }
  32. }