2019-01-13 20:02:23 +00:00
|
|
|
using System;
|
2019-08-29 20:28:33 +00:00
|
|
|
using System.Collections.Generic;
|
2022-08-17 18:14:07 +00:00
|
|
|
using Jellyfin.Data.Enums;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Search
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-04 00:49:27 +00:00
|
|
|
/// Class SearchHintResult.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
public class SearchHint
|
|
|
|
{
|
2022-08-17 18:14:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="SearchHint" /> class.
|
|
|
|
/// </summary>
|
|
|
|
public SearchHint()
|
|
|
|
{
|
|
|
|
Name = string.Empty;
|
|
|
|
MatchedTerm = string.Empty;
|
2023-05-13 18:44:31 +00:00
|
|
|
MediaType = Jellyfin.Data.Enums.MediaType.Unknown;
|
2022-08-17 18:14:07 +00:00
|
|
|
Artists = Array.Empty<string>();
|
|
|
|
}
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the item id.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The item id.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
[Obsolete("Use Id instead")]
|
2018-12-27 23:27:57 +00:00
|
|
|
public Guid ItemId { get; set; }
|
|
|
|
|
2022-08-17 18:14:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the item id.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The item id.</value>
|
2018-12-27 23:27:57 +00:00
|
|
|
public Guid Id { get; set; }
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the matched term.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The matched term.</value>
|
2024-05-25 15:46:26 +00:00
|
|
|
public string? MatchedTerm { get; set; }
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the index number.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The index number.</value>
|
|
|
|
public int? IndexNumber { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the production year.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The production year.</value>
|
|
|
|
public int? ProductionYear { get; set; }
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the parent index number.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The parent index number.</value>
|
|
|
|
public int? ParentIndexNumber { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the image tag.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The image tag.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? PrimaryImageTag { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the thumb image tag.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The thumb image tag.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? ThumbImageTag { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the thumb image item identifier.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The thumb image item identifier.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? ThumbImageItemId { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the backdrop image tag.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The backdrop image tag.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? BackdropImageTag { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the backdrop image item identifier.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The backdrop image item identifier.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? BackdropImageItemId { get; set; }
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public BaseItemKind Type { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2022-08-17 18:14:07 +00:00
|
|
|
/// <summary>
|
2022-10-06 19:44:12 +00:00
|
|
|
/// Gets or sets a value indicating whether this instance is folder.
|
2022-08-17 18:14:07 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
|
2018-12-27 23:27:57 +00:00
|
|
|
public bool? IsFolder { get; set; }
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the run time ticks.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The run time ticks.</value>
|
|
|
|
public long? RunTimeTicks { get; set; }
|
2019-01-07 23:27:46 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the type of the media.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The type of the media.</value>
|
2023-05-13 18:44:31 +00:00
|
|
|
public MediaType MediaType { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2022-08-17 18:14:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the start date.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The start date.</value>
|
2018-12-27 23:27:57 +00:00
|
|
|
public DateTime? StartDate { get; set; }
|
2020-06-15 21:43:52 +00:00
|
|
|
|
2022-08-17 18:14:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the end date.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The end date.</value>
|
2018-12-27 23:27:57 +00:00
|
|
|
public DateTime? EndDate { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the series.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The series.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? Series { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2022-08-17 18:14:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the status.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The status.</value>
|
|
|
|
public string? Status { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the album.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The album.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? Album { get; set; }
|
2019-08-29 20:28:33 +00:00
|
|
|
|
2022-08-17 18:14:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the album id.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The album id.</value>
|
|
|
|
public Guid? AlbumId { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the album artist.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The album artist.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? AlbumArtist { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the artists.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The artists.</value>
|
2019-08-29 20:28:33 +00:00
|
|
|
public IReadOnlyList<string> Artists { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the song count.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The song count.</value>
|
|
|
|
public int? SongCount { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the episode count.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The episode count.</value>
|
|
|
|
public int? EpisodeCount { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the channel identifier.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The channel identifier.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public Guid? ChannelId { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the name of the channel.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name of the channel.</value>
|
2022-08-17 18:14:07 +00:00
|
|
|
public string? ChannelName { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the primary image aspect ratio.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The primary image aspect ratio.</value>
|
|
|
|
public double? PrimaryImageAspectRatio { get; set; }
|
|
|
|
}
|
|
|
|
}
|