NextUpQuery.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. EnableResumable = false;
  16. EnableRewatching = false;
  17. }
  18. /// <summary>
  19. /// Gets or sets the user id.
  20. /// </summary>
  21. /// <value>The user id.</value>
  22. public Guid UserId { 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 fields to return within the items, in addition to basic information.
  45. /// </summary>
  46. /// <value>The fields.</value>
  47. public ItemFields[] Fields { get; set; }
  48. /// <summary>
  49. /// Gets or sets a value indicating whether [enable images].
  50. /// </summary>
  51. /// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
  52. public bool? EnableImages { get; set; }
  53. /// <summary>
  54. /// Gets or sets the image type limit.
  55. /// </summary>
  56. /// <value>The image type limit.</value>
  57. public int? ImageTypeLimit { get; set; }
  58. /// <summary>
  59. /// Gets or sets the enable image types.
  60. /// </summary>
  61. /// <value>The enable image types.</value>
  62. public ImageType[] EnableImageTypes { get; set; }
  63. public bool EnableTotalRecordCount { get; set; }
  64. /// <summary>
  65. /// Gets or sets a value indicating whether do disable sending first episode as next up.
  66. /// </summary>
  67. public bool DisableFirstEpisode { get; set; }
  68. /// <summary>
  69. /// Gets or sets a value indicating the oldest date for a show to appear in Next Up.
  70. /// </summary>
  71. public DateTime NextUpDateCutoff { get; set; }
  72. /// <summary>
  73. /// Gets or sets a value indicating whether to include resumable episodes as next up.
  74. /// </summary>
  75. public bool EnableResumable { get; set; }
  76. /// <summary>
  77. /// Gets or sets a value indicating whether getting rewatching next up list.
  78. /// </summary>
  79. public bool EnableRewatching { get; set; }
  80. }
  81. }