NextUpQuery.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  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. Rewatching = false;
  16. }
  17. /// <summary>
  18. /// Gets or sets the user id.
  19. /// </summary>
  20. /// <value>The user id.</value>
  21. public Guid UserId { get; set; }
  22. /// <summary>
  23. /// Gets or sets the parent identifier.
  24. /// </summary>
  25. /// <value>The parent identifier.</value>
  26. public Guid? ParentId { get; set; }
  27. /// <summary>
  28. /// Gets or sets the series id.
  29. /// </summary>
  30. /// <value>The series id.</value>
  31. public string SeriesId { get; set; }
  32. /// <summary>
  33. /// Gets or sets the start index. Use for paging.
  34. /// </summary>
  35. /// <value>The start index.</value>
  36. public int? StartIndex { get; set; }
  37. /// <summary>
  38. /// Gets or sets the maximum number of items to return.
  39. /// </summary>
  40. /// <value>The limit.</value>
  41. public int? Limit { get; set; }
  42. /// <summary>
  43. /// gets or sets the fields to return within the items, in addition to basic information.
  44. /// </summary>
  45. /// <value>The fields.</value>
  46. public ItemFields[] Fields { get; set; }
  47. /// <summary>
  48. /// Gets or sets a value indicating whether [enable images].
  49. /// </summary>
  50. /// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
  51. public bool? EnableImages { get; set; }
  52. /// <summary>
  53. /// Gets or sets the image type limit.
  54. /// </summary>
  55. /// <value>The image type limit.</value>
  56. public int? ImageTypeLimit { get; set; }
  57. /// <summary>
  58. /// Gets or sets the enable image types.
  59. /// </summary>
  60. /// <value>The enable image types.</value>
  61. public ImageType[] EnableImageTypes { get; set; }
  62. public bool EnableTotalRecordCount { get; set; }
  63. /// <summary>
  64. /// Gets or sets a value indicating whether do disable sending first episode as next up.
  65. /// </summary>
  66. public bool DisableFirstEpisode { get; set; }
  67. /// <summary>
  68. /// Gets or sets a value indicating the oldest date for a show to appear in Next Up.
  69. /// </summary>
  70. public DateTime NextUpDateCutoff { get; set; }
  71. /// <summary>
  72. /// Gets or sets a value indicating whether getting rewatching next up list.
  73. /// </summary>
  74. public bool Rewatching { get; set; }
  75. }
  76. }