2
0

GetProgramsDto.cs 5.7 KB

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