< 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: 89
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/Channels/ChannelFeatures.cs

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