Files
jellyfin-jellyfin-1/MediaBrowser.Controller/Chapters/IChapterManager.cs

36 lines
1.2 KiB
C#
Raw Normal View History

2020-02-23 10:53:51 +01:00
using System;
using System.Collections.Generic;
2024-10-08 12:27:27 +00:00
using MediaBrowser.Model.Dto;
2018-12-27 18:27:57 -05:00
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Chapters
{
/// <summary>
2020-02-23 10:53:51 +01:00
/// Interface IChapterManager.
2018-12-27 18:27:57 -05:00
/// </summary>
public interface IChapterManager
{
/// <summary>
/// Saves the chapters.
/// </summary>
/// <param name="itemId">The item.</param>
/// <param name="chapters">The set of chapters.</param>
2020-02-23 10:53:51 +01:00
void SaveChapters(Guid itemId, IReadOnlyList<ChapterInfo> chapters);
2024-10-08 12:27:27 +00:00
/// <summary>
/// Gets all chapters associated with the baseItem.
/// </summary>
/// <param name="baseItem">The baseitem.</param>
/// <returns>A readonly list of chapter instances.</returns>
IReadOnlyList<ChapterInfo> GetChapters(BaseItemDto baseItem);
/// <summary>
/// Gets a single chapter of a BaseItem on a specific index.
/// </summary>
/// <param name="baseItem">The baseitem.</param>
/// <param name="index">The index of that chapter.</param>
/// <returns>A chapter instance.</returns>
ChapterInfo? GetChapter(BaseItemDto baseItem, int index);
2018-12-27 18:27:57 -05:00
}
}