< Summary - Jellyfin

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

#LineLine coverage
 1#nullable disable
 2#pragma warning disable CS1591
 3
 4using System;
 5using Jellyfin.Data.Enums;
 6
 7namespace MediaBrowser.Model.LiveTv
 8{
 9    /// <summary>
 10    /// Class ChannelQuery.
 11    /// </summary>
 12    public class LiveTvChannelQuery
 13    {
 14        public LiveTvChannelQuery()
 15        {
 016            EnableUserData = true;
 017            SortBy = Array.Empty<ItemSortBy>();
 018        }
 19
 20        /// <summary>
 21        /// Gets or sets the type of the channel.
 22        /// </summary>
 23        /// <value>The type of the channel.</value>
 24        public ChannelType? ChannelType { get; set; }
 25
 26        /// <summary>
 27        /// Gets or sets a value indicating whether this instance is favorite.
 28        /// </summary>
 29        /// <value><c>null</c> if [is favorite] contains no value, <c>true</c> if [is favorite]; otherwise, <c>false</c>
 30        public bool? IsFavorite { get; set; }
 31
 32        /// <summary>
 33        /// Gets or sets a value indicating whether this instance is liked.
 34        /// </summary>
 35        /// <value><c>null</c> if [is liked] contains no value, <c>true</c> if [is liked]; otherwise, <c>false</c>.</val
 36        public bool? IsLiked { get; set; }
 37
 38        /// <summary>
 39        /// Gets or sets a value indicating whether this instance is disliked.
 40        /// </summary>
 41        /// <value><c>null</c> if [is disliked] contains no value, <c>true</c> if [is disliked]; otherwise, <c>false</c>
 42        public bool? IsDisliked { get; set; }
 43
 44        /// <summary>
 45        /// Gets or sets a value indicating whether [enable favorite sorting].
 46        /// </summary>
 47        /// <value><c>true</c> if [enable favorite sorting]; otherwise, <c>false</c>.</value>
 48        public bool EnableFavoriteSorting { get; set; }
 49
 50        /// <summary>
 51        /// Gets or sets the user identifier.
 52        /// </summary>
 53        /// <value>The user identifier.</value>
 54        public Guid UserId { get; set; }
 55
 56        /// <summary>
 57        /// Gets or sets the start index. Used for paging.
 58        /// </summary>
 59        /// <value>The start index.</value>
 60        public int? StartIndex { get; set; }
 61
 62        /// <summary>
 63        /// Gets or sets the maximum number of items to return.
 64        /// </summary>
 65        /// <value>The limit.</value>
 66        public int? Limit { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets a value indicating whether [add current program].
 70        /// </summary>
 71        /// <value><c>true</c> if [add current program]; otherwise, <c>false</c>.</value>
 72        public bool AddCurrentProgram { get; set; }
 73
 74        public bool EnableUserData { get; set; }
 75
 76        /// <summary>
 77        /// Gets or sets a value whether to return news or not.
 78        /// </summary>
 79        /// <remarks>If set to <c>null</c>, all programs will be returned.</remarks>
 80        public bool? IsNews { get; set; }
 81
 82        /// <summary>
 83        /// Gets or sets a value whether to return movies or not.
 84        /// </summary>
 85        /// <remarks>If set to <c>null</c>, all programs will be returned.</remarks>
 86        public bool? IsMovie { get; set; }
 87
 88        /// <summary>
 89        /// Gets or sets a value indicating whether this instance is kids.
 90        /// </summary>
 91        /// <value><c>null</c> if [is kids] contains no value, <c>true</c> if [is kids]; otherwise, <c>false</c>.</value
 92        public bool? IsKids { get; set; }
 93
 94        /// <summary>
 95        /// Gets or sets a value indicating whether this instance is sports.
 96        /// </summary>
 97        /// <value><c>null</c> if [is sports] contains no value, <c>true</c> if [is sports]; otherwise, <c>false</c>.</v
 98        public bool? IsSports { get; set; }
 99
 100        public bool? IsSeries { get; set; }
 101
 102        public ItemSortBy[] SortBy { get; set; }
 103
 104        /// <summary>
 105        /// Gets or sets the sort order to return results with.
 106        /// </summary>
 107        /// <value>The sort order.</value>
 108        public SortOrder? SortOrder { get; set; }
 109    }
 110}

Methods/Properties

.ctor()