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