GetProgramsDto.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. using System;
  2. using System.Diagnostics.CodeAnalysis;
  3. using System.Text.Json.Serialization;
  4. using MediaBrowser.Common.Json.Converters;
  5. using MediaBrowser.Model.Entities;
  6. namespace Jellyfin.Api.Models.LiveTvDtos
  7. {
  8. /// <summary>
  9. /// Get programs dto.
  10. /// </summary>
  11. public class GetProgramsDto
  12. {
  13. /// <summary>
  14. /// Gets or sets the channels to return guide information for.
  15. /// </summary>
  16. public string? ChannelIds { get; set; }
  17. /// <summary>
  18. /// Gets or sets optional. Filter by user id.
  19. /// </summary>
  20. public Guid UserId { get; set; }
  21. /// <summary>
  22. /// Gets or sets the minimum premiere start date.
  23. /// Optional.
  24. /// </summary>
  25. public DateTime? MinStartDate { get; set; }
  26. /// <summary>
  27. /// Gets or sets filter by programs that have completed airing, or not.
  28. /// Optional.
  29. /// </summary>
  30. public bool? HasAired { get; set; }
  31. /// <summary>
  32. /// Gets or sets filter by programs that are currently airing, or not.
  33. /// Optional.
  34. /// </summary>
  35. public bool? IsAiring { get; set; }
  36. /// <summary>
  37. /// Gets or sets the maximum premiere start date.
  38. /// Optional.
  39. /// </summary>
  40. public DateTime? MaxStartDate { get; set; }
  41. /// <summary>
  42. /// Gets or sets the minimum premiere end date.
  43. /// Optional.
  44. /// </summary>
  45. public DateTime? MinEndDate { get; set; }
  46. /// <summary>
  47. /// Gets or sets the maximum premiere end date.
  48. /// Optional.
  49. /// </summary>
  50. public DateTime? MaxEndDate { get; set; }
  51. /// <summary>
  52. /// Gets or sets filter for movies.
  53. /// Optional.
  54. /// </summary>
  55. public bool? IsMovie { get; set; }
  56. /// <summary>
  57. /// Gets or sets filter for series.
  58. /// Optional.
  59. /// </summary>
  60. public bool? IsSeries { get; set; }
  61. /// <summary>
  62. /// Gets or sets filter for news.
  63. /// Optional.
  64. /// </summary>
  65. public bool? IsNews { get; set; }
  66. /// <summary>
  67. /// Gets or sets filter for kids.
  68. /// Optional.
  69. /// </summary>
  70. public bool? IsKids { get; set; }
  71. /// <summary>
  72. /// Gets or sets filter for sports.
  73. /// Optional.
  74. /// </summary>
  75. public bool? IsSports { get; set; }
  76. /// <summary>
  77. /// Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
  78. /// Optional.
  79. /// </summary>
  80. public int? StartIndex { get; set; }
  81. /// <summary>
  82. /// Gets or sets the maximum number of records to return.
  83. /// Optional.
  84. /// </summary>
  85. public int? Limit { get; set; }
  86. /// <summary>
  87. /// Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
  88. /// Optional.
  89. /// </summary>
  90. public string? SortBy { get; set; }
  91. /// <summary>
  92. /// Gets or sets sort Order - Ascending,Descending.
  93. /// </summary>
  94. public string? SortOrder { get; set; }
  95. /// <summary>
  96. /// Gets or sets the genres to return guide information for.
  97. /// </summary>
  98. public string? Genres { get; set; }
  99. /// <summary>
  100. /// Gets or sets the genre ids to return guide information for.
  101. /// </summary>
  102. public string? GenreIds { get; set; }
  103. /// <summary>
  104. /// Gets or sets include image information in output.
  105. /// Optional.
  106. /// </summary>
  107. public bool? EnableImages { get; set; }
  108. /// <summary>
  109. /// Gets or sets a value indicating whether retrieve total record count.
  110. /// </summary>
  111. public bool EnableTotalRecordCount { get; set; } = true;
  112. /// <summary>
  113. /// Gets or sets the max number of images to return, per image type.
  114. /// Optional.
  115. /// </summary>
  116. public int? ImageTypeLimit { get; set; }
  117. /// <summary>
  118. /// Gets or sets the image types to include in the output.
  119. /// Optional.
  120. /// </summary>
  121. [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
  122. [SuppressMessage("Microsoft.Performance", "CA1819:ReturnArrays", MessageId = "EnableImageTypes", Justification = "Imported from ServiceStack")]
  123. public ImageType[] EnableImageTypes { get; set; } = Array.Empty<ImageType>();
  124. /// <summary>
  125. /// Gets or sets include user data.
  126. /// Optional.
  127. /// </summary>
  128. public bool? EnableUserData { get; set; }
  129. /// <summary>
  130. /// Gets or sets filter by series timer id.
  131. /// Optional.
  132. /// </summary>
  133. public string? SeriesTimerId { get; set; }
  134. /// <summary>
  135. /// Gets or sets filter by library series id.
  136. /// Optional.
  137. /// </summary>
  138. public Guid LibrarySeriesId { get; set; }
  139. /// <summary>
  140. /// Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
  141. /// Optional.
  142. /// </summary>
  143. public string? Fields { get; set; }
  144. }
  145. }