aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Querying/NextUpQuery.cs
blob: a2a3a9d1bb118934011102553fd90018f5a51b53 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#pragma warning disable CS1591

using System;
using Jellyfin.Database.Implementations.Entities;
using MediaBrowser.Model.Entities;

namespace MediaBrowser.Model.Querying;

public class NextUpQuery
{
    public NextUpQuery()
    {
        EnableImageTypes = Array.Empty<ImageType>();
        EnableTotalRecordCount = true;
        NextUpDateCutoff = DateTime.MinValue;
        EnableResumable = false;
        EnableRewatching = false;
    }

    /// <summary>
    /// Gets or sets the user.
    /// </summary>
    /// <value>The user.</value>
    public required User User { get; set; }

    /// <summary>
    /// Gets or sets the parent identifier.
    /// </summary>
    /// <value>The parent identifier.</value>
    public Guid? ParentId { get; set; }

    /// <summary>
    /// Gets or sets the series id.
    /// </summary>
    /// <value>The series id.</value>
    public Guid? SeriesId { get; set; }

    /// <summary>
    /// Gets or sets the start index. Use for paging.
    /// </summary>
    /// <value>The start index.</value>
    public int? StartIndex { get; set; }

    /// <summary>
    /// Gets or sets the maximum number of items to return.
    /// </summary>
    /// <value>The limit.</value>
    public int? Limit { get; set; }

    /// <summary>
    /// Gets or sets the enable image types.
    /// </summary>
    /// <value>The enable image types.</value>
    public ImageType[] EnableImageTypes { get; set; }

    public bool EnableTotalRecordCount { get; set; }

    /// <summary>
    /// Gets or sets a value indicating the oldest date for a show to appear in Next Up.
    /// </summary>
    public DateTime NextUpDateCutoff { get; set; }

    /// <summary>
    /// Gets or sets a value indicating whether to include resumable episodes as next up.
    /// </summary>
    public bool EnableResumable { get; set; }

    /// <summary>
    /// Gets or sets a value indicating whether getting rewatching next up list.
    /// </summary>
    public bool EnableRewatching { get; set; }
}