using System; using System.Collections.Generic; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; namespace MediaBrowser.Controller.Chapters { /// /// Interface IChapterManager. /// public interface IChapterManager { /// /// Saves the chapters. /// /// The item. /// The set of chapters. void SaveChapters(Guid itemId, IReadOnlyList chapters); /// /// Gets all chapters associated with the baseItem. /// /// The baseitem. /// A readonly list of chapter instances. IReadOnlyList GetChapters(BaseItemDto baseItem); /// /// Gets a single chapter of a BaseItem on a specific index. /// /// The baseitem. /// The index of that chapter. /// A chapter instance. ChapterInfo? GetChapter(BaseItemDto baseItem, int index); } }