< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Search.SearchHint
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Search/SearchHint.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 198
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/Search/SearchHint.cs

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

Methods/Properties

.ctor()