< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Querying.LatestItemsQuery
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Querying/LatestItemsQuery.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 85
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/Querying/LatestItemsQuery.cs

#LineLine coverage
 1#nullable disable
 2#pragma warning disable CS1591
 3
 4using System;
 5using Jellyfin.Data.Entities;
 6using Jellyfin.Data.Enums;
 7using MediaBrowser.Model.Entities;
 8
 9namespace MediaBrowser.Model.Querying
 10{
 11    public class LatestItemsQuery
 12    {
 13        public LatestItemsQuery()
 14        {
 015            EnableImageTypes = Array.Empty<ImageType>();
 016        }
 17
 18        /// <summary>
 19        /// Gets or sets the user to localize search results for.
 20        /// </summary>
 21        /// <value>The user id.</value>
 22        public User User { get; set; }
 23
 24        /// <summary>
 25        /// Gets or sets the parent id.
 26        /// Specify this to localize the search to a specific item or folder. Omit to use the root.
 27        /// </summary>
 28        /// <value>The parent id.</value>
 29        public Guid ParentId { get; set; }
 30
 31        /// <summary>
 32        /// Gets or sets the start index. Used for paging.
 33        /// </summary>
 34        /// <value>The start index.</value>
 35        public int? StartIndex { get; set; }
 36
 37        /// <summary>
 38        /// Gets or sets the maximum number of items to return.
 39        /// </summary>
 40        /// <value>The limit.</value>
 41        public int? Limit { get; set; }
 42
 43        /// <summary>
 44        /// Gets or sets the fields to return within the items, in addition to basic information.
 45        /// </summary>
 46        /// <value>The fields.</value>
 47        public ItemFields[] Fields { get; set; }
 48
 49        /// <summary>
 50        /// Gets or sets the include item types.
 51        /// </summary>
 52        /// <value>The include item types.</value>
 53        public BaseItemKind[] IncludeItemTypes { get; set; }
 54
 55        /// <summary>
 56        /// Gets or sets a value indicating whether this instance is played.
 57        /// </summary>
 58        /// <value><c>null</c> if [is played] contains no value, <c>true</c> if [is played]; otherwise, <c>false</c>.</v
 59        public bool? IsPlayed { get; set; }
 60
 61        /// <summary>
 62        /// Gets or sets a value indicating whether [group items].
 63        /// </summary>
 64        /// <value><c>true</c> if [group items]; otherwise, <c>false</c>.</value>
 65        public bool GroupItems { get; set; }
 66
 67        /// <summary>
 68        /// Gets or sets a value indicating whether [enable images].
 69        /// </summary>
 70        /// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false
 71        public bool? EnableImages { get; set; }
 72
 73        /// <summary>
 74        /// Gets or sets the image type limit.
 75        /// </summary>
 76        /// <value>The image type limit.</value>
 77        public int? ImageTypeLimit { get; set; }
 78
 79        /// <summary>
 80        /// Gets or sets the enable image types.
 81        /// </summary>
 82        /// <value>The enable image types.</value>
 83        public ImageType[] EnableImageTypes { get; set; }
 84    }
 85}

Methods/Properties

.ctor()