SearchHint.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. using System;
  2. using System.Collections.Generic;
  3. using Jellyfin.Data.Enums;
  4. namespace MediaBrowser.Model.Search
  5. {
  6. /// <summary>
  7. /// Class SearchHintResult.
  8. /// </summary>
  9. public class SearchHint
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="SearchHint" /> class.
  13. /// </summary>
  14. public SearchHint()
  15. {
  16. Name = string.Empty;
  17. MatchedTerm = string.Empty;
  18. MediaType = string.Empty;
  19. Artists = Array.Empty<string>();
  20. }
  21. /// <summary>
  22. /// Gets or sets the item id.
  23. /// </summary>
  24. /// <value>The item id.</value>
  25. [Obsolete("Use Id instead")]
  26. public Guid ItemId { get; set; }
  27. /// <summary>
  28. /// Gets or sets the item id.
  29. /// </summary>
  30. /// <value>The item id.</value>
  31. public Guid Id { get; set; }
  32. /// <summary>
  33. /// Gets or sets the name.
  34. /// </summary>
  35. /// <value>The name.</value>
  36. public string Name { get; set; }
  37. /// <summary>
  38. /// Gets or sets the matched term.
  39. /// </summary>
  40. /// <value>The matched term.</value>
  41. public string MatchedTerm { get; set; }
  42. /// <summary>
  43. /// Gets or sets the index number.
  44. /// </summary>
  45. /// <value>The index number.</value>
  46. public int? IndexNumber { get; set; }
  47. /// <summary>
  48. /// Gets or sets the production year.
  49. /// </summary>
  50. /// <value>The production year.</value>
  51. public int? ProductionYear { get; set; }
  52. /// <summary>
  53. /// Gets or sets the parent index number.
  54. /// </summary>
  55. /// <value>The parent index number.</value>
  56. public int? ParentIndexNumber { get; set; }
  57. /// <summary>
  58. /// Gets or sets the image tag.
  59. /// </summary>
  60. /// <value>The image tag.</value>
  61. public string? PrimaryImageTag { get; set; }
  62. /// <summary>
  63. /// Gets or sets the thumb image tag.
  64. /// </summary>
  65. /// <value>The thumb image tag.</value>
  66. public string? ThumbImageTag { get; set; }
  67. /// <summary>
  68. /// Gets or sets the thumb image item identifier.
  69. /// </summary>
  70. /// <value>The thumb image item identifier.</value>
  71. public string? ThumbImageItemId { get; set; }
  72. /// <summary>
  73. /// Gets or sets the backdrop image tag.
  74. /// </summary>
  75. /// <value>The backdrop image tag.</value>
  76. public string? BackdropImageTag { get; set; }
  77. /// <summary>
  78. /// Gets or sets the backdrop image item identifier.
  79. /// </summary>
  80. /// <value>The backdrop image item identifier.</value>
  81. public string? BackdropImageItemId { get; set; }
  82. /// <summary>
  83. /// Gets or sets the type.
  84. /// </summary>
  85. /// <value>The type.</value>
  86. public BaseItemKind Type { get; set; }
  87. /// <summary>
  88. /// Gets or sets a value indicating whether this instance is folder.
  89. /// </summary>
  90. /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
  91. public bool? IsFolder { get; set; }
  92. /// <summary>
  93. /// Gets or sets the run time ticks.
  94. /// </summary>
  95. /// <value>The run time ticks.</value>
  96. public long? RunTimeTicks { get; set; }
  97. /// <summary>
  98. /// Gets or sets the type of the media.
  99. /// </summary>
  100. /// <value>The type of the media.</value>
  101. public string MediaType { get; set; }
  102. /// <summary>
  103. /// Gets or sets the start date.
  104. /// </summary>
  105. /// <value>The start date.</value>
  106. public DateTime? StartDate { get; set; }
  107. /// <summary>
  108. /// Gets or sets the end date.
  109. /// </summary>
  110. /// <value>The end date.</value>
  111. public DateTime? EndDate { get; set; }
  112. /// <summary>
  113. /// Gets or sets the series.
  114. /// </summary>
  115. /// <value>The series.</value>
  116. public string? Series { get; set; }
  117. /// <summary>
  118. /// Gets or sets the status.
  119. /// </summary>
  120. /// <value>The status.</value>
  121. public string? Status { get; set; }
  122. /// <summary>
  123. /// Gets or sets the album.
  124. /// </summary>
  125. /// <value>The album.</value>
  126. public string? Album { get; set; }
  127. /// <summary>
  128. /// Gets or sets the album id.
  129. /// </summary>
  130. /// <value>The album id.</value>
  131. public Guid? AlbumId { get; set; }
  132. /// <summary>
  133. /// Gets or sets the album artist.
  134. /// </summary>
  135. /// <value>The album artist.</value>
  136. public string? AlbumArtist { get; set; }
  137. /// <summary>
  138. /// Gets or sets the artists.
  139. /// </summary>
  140. /// <value>The artists.</value>
  141. public IReadOnlyList<string> Artists { get; set; }
  142. /// <summary>
  143. /// Gets or sets the song count.
  144. /// </summary>
  145. /// <value>The song count.</value>
  146. public int? SongCount { get; set; }
  147. /// <summary>
  148. /// Gets or sets the episode count.
  149. /// </summary>
  150. /// <value>The episode count.</value>
  151. public int? EpisodeCount { get; set; }
  152. /// <summary>
  153. /// Gets or sets the channel identifier.
  154. /// </summary>
  155. /// <value>The channel identifier.</value>
  156. public Guid? ChannelId { get; set; }
  157. /// <summary>
  158. /// Gets or sets the name of the channel.
  159. /// </summary>
  160. /// <value>The name of the channel.</value>
  161. public string? ChannelName { get; set; }
  162. /// <summary>
  163. /// Gets or sets the primary image aspect ratio.
  164. /// </summary>
  165. /// <value>The primary image aspect ratio.</value>
  166. public double? PrimaryImageAspectRatio { get; set; }
  167. }
  168. }