NextUpQuery.cs 2.4 KB

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