< Summary - Jellyfin

Information
Class: Emby.Naming.AudioBook.AudioBookInfo
Assembly: Emby.Naming
File(s): /srv/git/jellyfin/Emby.Naming/AudioBook/AudioBookInfo.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 56
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/Emby.Naming/AudioBook/AudioBookInfo.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace Emby.Naming.AudioBook
 4{
 5    /// <summary>
 6    /// Represents a complete video, including all parts and subtitles.
 7    /// </summary>
 8    public class AudioBookInfo
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="AudioBookInfo" /> class.
 12        /// </summary>
 13        /// <param name="name">Name of audiobook.</param>
 14        /// <param name="year">Year of audiobook release.</param>
 15        /// <param name="files">List of files composing the actual audiobook.</param>
 16        /// <param name="extras">List of extra files.</param>
 17        /// <param name="alternateVersions">Alternative version of files.</param>
 18        public AudioBookInfo(string name, int? year, IReadOnlyList<AudioBookFileInfo> files, IReadOnlyList<AudioBookFile
 19        {
 3520            Name = name;
 3521            Year = year;
 3522            Files = files;
 3523            Extras = extras;
 3524            AlternateVersions = alternateVersions;
 3525        }
 26
 27        /// <summary>
 28        /// Gets or sets the name.
 29        /// </summary>
 30        /// <value>The name.</value>
 31        public string Name { get; set; }
 32
 33        /// <summary>
 34        /// Gets or sets the year.
 35        /// </summary>
 36        public int? Year { get; set; }
 37
 38        /// <summary>
 39        /// Gets or sets the files.
 40        /// </summary>
 41        /// <value>The files.</value>
 42        public IReadOnlyList<AudioBookFileInfo> Files { get; set; }
 43
 44        /// <summary>
 45        /// Gets or sets the extras.
 46        /// </summary>
 47        /// <value>The extras.</value>
 48        public IReadOnlyList<AudioBookFileInfo> Extras { get; set; }
 49
 50        /// <summary>
 51        /// Gets or sets the alternate versions.
 52        /// </summary>
 53        /// <value>The alternate versions.</value>
 54        public IReadOnlyList<AudioBookFileInfo> AlternateVersions { get; set; }
 55    }
 56}