NextUpQuery.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #pragma warning disable CS1591
  2. using System;
  3. using Jellyfin.Database.Implementations.Entities;
  4. using MediaBrowser.Model.Entities;
  5. namespace MediaBrowser.Model.Querying;
  6. public class NextUpQuery
  7. {
  8. public NextUpQuery()
  9. {
  10. EnableImageTypes = Array.Empty<ImageType>();
  11. EnableTotalRecordCount = true;
  12. NextUpDateCutoff = DateTime.MinValue;
  13. EnableResumable = false;
  14. EnableRewatching = false;
  15. }
  16. /// <summary>
  17. /// Gets or sets the user.
  18. /// </summary>
  19. /// <value>The user.</value>
  20. public required User User { get; set; }
  21. /// <summary>
  22. /// Gets or sets the parent identifier.
  23. /// </summary>
  24. /// <value>The parent identifier.</value>
  25. public Guid? ParentId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the series id.
  28. /// </summary>
  29. /// <value>The series id.</value>
  30. public Guid? SeriesId { get; set; }
  31. /// <summary>
  32. /// Gets or sets the start index. Use for paging.
  33. /// </summary>
  34. /// <value>The start index.</value>
  35. public int? StartIndex { get; set; }
  36. /// <summary>
  37. /// Gets or sets the maximum number of items to return.
  38. /// </summary>
  39. /// <value>The limit.</value>
  40. public int? Limit { get; set; }
  41. /// <summary>
  42. /// Gets or sets the enable image types.
  43. /// </summary>
  44. /// <value>The enable image types.</value>
  45. public ImageType[] EnableImageTypes { get; set; }
  46. public bool EnableTotalRecordCount { get; set; }
  47. /// <summary>
  48. /// Gets or sets a value indicating the oldest date for a show to appear in Next Up.
  49. /// </summary>
  50. public DateTime NextUpDateCutoff { get; set; }
  51. /// <summary>
  52. /// Gets or sets a value indicating whether to include resumable episodes as next up.
  53. /// </summary>
  54. public bool EnableResumable { get; set; }
  55. /// <summary>
  56. /// Gets or sets a value indicating whether getting rewatching next up list.
  57. /// </summary>
  58. public bool EnableRewatching { get; set; }
  59. }