From 6c819fe516ba742f1dcc77d61f6eedbe987cd692 Mon Sep 17 00:00:00 2001
From: JPVenson <6794763+JPVenson@users.noreply.github.com>
Date: Tue, 8 Oct 2024 12:27:27 +0000
Subject: WIP BaseItem search refactoring
---
MediaBrowser.Controller/Chapters/IChapterManager.cs | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
(limited to 'MediaBrowser.Controller/Chapters/IChapterManager.cs')
diff --git a/MediaBrowser.Controller/Chapters/IChapterManager.cs b/MediaBrowser.Controller/Chapters/IChapterManager.cs
index c049bb97e7..55762c7fc4 100644
--- a/MediaBrowser.Controller/Chapters/IChapterManager.cs
+++ b/MediaBrowser.Controller/Chapters/IChapterManager.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Chapters
@@ -15,5 +16,20 @@ namespace MediaBrowser.Controller.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);
}
}
--
cgit v1.2.3