< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Channels.ChannelFeatures
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Channels/ChannelFeatures.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 90
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 2/13/2026 - 12:11:21 AM Line coverage: 0% (0/6) Total lines: 895/16/2026 - 12:15:55 AM Line coverage: 0% (0/6) Total lines: 90

Coverage delta

Coverage delta 1 -1

Metrics

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

File(s)

/srv/git/jellyfin/MediaBrowser.Model/Channels/ChannelFeatures.cs

#LineLine coverage
 1#pragma warning disable CS1591
 2
 3using System;
 4using System.Collections.Generic;
 5
 6namespace MediaBrowser.Model.Channels
 7{
 8    public class ChannelFeatures
 9    {
 10        public ChannelFeatures(string name, Guid id)
 11        {
 012            MediaTypes = [];
 013            ContentTypes = [];
 014            DefaultSortFields = [];
 15
 016            Name = name;
 017            Id = id;
 018        }
 19
 20        /// <summary>
 21        /// Gets or sets the name.
 22        /// </summary>
 23        /// <value>The name.</value>
 24        public string Name { get; set; }
 25
 26        /// <summary>
 27        /// Gets or sets the identifier.
 28        /// </summary>
 29        /// <value>The identifier.</value>
 30        public Guid Id { get; set; }
 31
 32        /// <summary>
 33        /// Gets or sets a value indicating whether this instance can search.
 34        /// </summary>
 35        /// <value><c>true</c> if this instance can search; otherwise, <c>false</c>.</value>
 36        public bool CanSearch { get; set; }
 37
 38        /// <summary>
 39        /// Gets or sets the media types.
 40        /// </summary>
 41        /// <value>The media types.</value>
 42        public IReadOnlyList<ChannelMediaType> MediaTypes { get; set; }
 43
 44        /// <summary>
 45        /// Gets or sets the content types.
 46        /// </summary>
 47        /// <value>The content types.</value>
 48        public IReadOnlyList<ChannelMediaContentType> ContentTypes { get; set; }
 49
 50        /// <summary>
 51        /// Gets or sets the maximum number of records the channel allows retrieving at a time.
 52        /// </summary>
 53        public int? MaxPageSize { get; set; }
 54
 55        /// <summary>
 56        /// Gets or sets the automatic refresh levels.
 57        /// </summary>
 58        /// <value>The automatic refresh levels.</value>
 59        public int? AutoRefreshLevels { get; set; }
 60
 61        /// <summary>
 62        /// Gets or sets the default sort orders.
 63        /// </summary>
 64        /// <value>The default sort orders.</value>
 65        public IReadOnlyList<ChannelItemSortField> DefaultSortFields { get; set; }
 66
 67        /// <summary>
 68        /// Gets or sets a value indicating whether a sort ascending/descending toggle is supported.
 69        /// </summary>
 70        public bool SupportsSortOrderToggle { get; set; }
 71
 72        /// <summary>
 73        /// Gets or sets a value indicating whether [supports latest media].
 74        /// </summary>
 75        /// <value><c>true</c> if [supports latest media]; otherwise, <c>false</c>.</value>
 76        public bool SupportsLatestMedia { get; set; }
 77
 78        /// <summary>
 79        /// Gets or sets a value indicating whether this instance can filter.
 80        /// </summary>
 81        /// <value><c>true</c> if this instance can filter; otherwise, <c>false</c>.</value>
 82        public bool CanFilter { get; set; }
 83
 84        /// <summary>
 85        /// Gets or sets a value indicating whether [supports content downloading].
 86        /// </summary>
 87        /// <value><c>true</c> if [supports content downloading]; otherwise, <c>false</c>.</value>
 88        public bool SupportsContentDownloading { get; set; }
 89    }
 90}