aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Persistence/NextUpEpisodeBatchResult.cs
blob: f5b09498b9665108b2d5b47316225ccd2aaee34d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Collections.Generic;
using MediaBrowser.Controller.Entities;

namespace MediaBrowser.Controller.Persistence;

/// <summary>
/// Result of a batched NextUp query for a single series.
/// </summary>
public sealed class NextUpEpisodeBatchResult
{
    /// <summary>
    /// Gets or sets the last watched episode (highest season/episode that is played).
    /// </summary>
    public BaseItem? LastWatched { get; set; }

    /// <summary>
    /// Gets or sets the next unwatched episode after the last watched position.
    /// </summary>
    public BaseItem? NextUp { get; set; }

    /// <summary>
    /// Gets or sets specials that may air between episodes.
    /// Only populated when includeSpecials is true.
    /// </summary>
    public IReadOnlyList<BaseItem>? Specials { get; set; }

    /// <summary>
    /// Gets or sets the last watched episode for rewatching mode (most recently played).
    /// Only populated when includeWatchedForRewatching is true.
    /// </summary>
    public BaseItem? LastWatchedForRewatching { get; set; }

    /// <summary>
    /// Gets or sets the next played episode for rewatching mode.
    /// Only populated when includeWatchedForRewatching is true.
    /// </summary>
    public BaseItem? NextPlayedForRewatching { get; set; }
}