NextUpQuery.cs 2.6 KB

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