From 077fa89717957f871b172ca4b2dc4a178efd3bc5 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Sat, 7 Mar 2026 20:12:42 +0100 Subject: Split BaseItemRepository and IItemRepository --- .../Persistence/INextUpService.cs | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 MediaBrowser.Controller/Persistence/INextUpService.cs (limited to 'MediaBrowser.Controller/Persistence/INextUpService.cs') diff --git a/MediaBrowser.Controller/Persistence/INextUpService.cs b/MediaBrowser.Controller/Persistence/INextUpService.cs new file mode 100644 index 0000000000..ade026d0da --- /dev/null +++ b/MediaBrowser.Controller/Persistence/INextUpService.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using MediaBrowser.Controller.Entities; + +namespace MediaBrowser.Controller.Persistence; + +/// +/// Provides next-up episode query operations. +/// +public interface INextUpService +{ + /// + /// Gets the list of series presentation keys for next up. + /// + /// The query. + /// The minimum date for a series to have been most recently watched. + /// The list of keys. + IReadOnlyList GetNextUpSeriesKeys(InternalItemsQuery filter, DateTime dateCutoff); + + /// + /// Gets next up episodes for multiple series in a single batched query. + /// + /// The query filter. + /// The series presentation unique keys to query. + /// Whether to include specials. + /// Whether to include watched episodes for rewatching mode. + /// A dictionary mapping series key to batch result. + IReadOnlyDictionary GetNextUpEpisodesBatch( + InternalItemsQuery filter, + IReadOnlyList seriesKeys, + bool includeSpecials, + bool includeWatchedForRewatching); +} -- cgit v1.2.3