< Summary - Jellyfin

Information
Class: MediaBrowser.Model.MediaInfo.MediaInfo
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/MediaInfo/MediaInfo.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 86
Line coverage: 100%
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%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/MediaInfo/MediaInfo.cs

#LineLine coverage
 1#nullable disable
 2#pragma warning disable CS1591
 3
 4using System;
 5using System.Collections.Generic;
 6using MediaBrowser.Model.Dto;
 7using MediaBrowser.Model.Entities;
 8
 9namespace MediaBrowser.Model.MediaInfo
 10{
 11    public class MediaInfo : MediaSourceInfo, IHasProviderIds
 12    {
 2513        public MediaInfo()
 14        {
 2515            Chapters = Array.Empty<ChapterInfo>();
 2516            Artists = Array.Empty<string>();
 2517            AlbumArtists = Array.Empty<string>();
 2518            Studios = Array.Empty<string>();
 2519            Genres = Array.Empty<string>();
 2520            People = Array.Empty<BaseItemPerson>();
 2521            ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
 2522        }
 23
 24        public ChapterInfo[] Chapters { get; set; }
 25
 26        /// <summary>
 27        /// Gets or sets the album.
 28        /// </summary>
 29        /// <value>The album.</value>
 30        public string Album { get; set; }
 31
 32        /// <summary>
 33        /// Gets or sets the artists.
 34        /// </summary>
 35        /// <value>The artists.</value>
 36        public string[] Artists { get; set; }
 37
 38        /// <summary>
 39        /// Gets or sets the album artists.
 40        /// </summary>
 41        /// <value>The album artists.</value>
 42        public string[] AlbumArtists { get; set; }
 43
 44        /// <summary>
 45        /// Gets or sets the studios.
 46        /// </summary>
 47        /// <value>The studios.</value>
 48        public string[] Studios { get; set; }
 49
 50        public string[] Genres { get; set; }
 51
 52        public string ShowName { get; set; }
 53
 54        public string ForcedSortName { get; set; }
 55
 56        public int? IndexNumber { get; set; }
 57
 58        public int? ParentIndexNumber { get; set; }
 59
 60        public int? ProductionYear { get; set; }
 61
 62        public DateTime? PremiereDate { get; set; }
 63
 64        public BaseItemPerson[] People { get; set; }
 65
 66        public Dictionary<string, string> ProviderIds { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets the official rating.
 70        /// </summary>
 71        /// <value>The official rating.</value>
 72        public string OfficialRating { get; set; }
 73
 74        /// <summary>
 75        /// Gets or sets the official rating description.
 76        /// </summary>
 77        /// <value>The official rating description.</value>
 78        public string OfficialRatingDescription { get; set; }
 79
 80        /// <summary>
 81        /// Gets or sets the overview.
 82        /// </summary>
 83        /// <value>The overview.</value>
 84        public string Overview { get; set; }
 85    }
 86}

Methods/Properties

.ctor()