SearchHint.cs 6.0 KB

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