< Summary - Jellyfin

Information
Class: Jellyfin.Data.Entities.Libraries.BookMetadata
Assembly: Jellyfin.Data
File(s): /srv/git/jellyfin/Jellyfin.Data/Entities/Libraries/BookMetadata.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 34
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%
get_Companies()100%210%

File(s)

/srv/git/jellyfin/Jellyfin.Data/Entities/Libraries/BookMetadata.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Jellyfin.Data.Interfaces;
 3
 4namespace Jellyfin.Data.Entities.Libraries
 5{
 6    /// <summary>
 7    /// An entity containing metadata for a book.
 8    /// </summary>
 9    public class BookMetadata : ItemMetadata, IHasCompanies
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="BookMetadata"/> class.
 13        /// </summary>
 14        /// <param name="title">The title or name of the object.</param>
 15        /// <param name="language">ISO-639-3 3-character language codes.</param>
 016        public BookMetadata(string title, string language) : base(title, language)
 17        {
 018            Publishers = new HashSet<Company>();
 019        }
 20
 21        /// <summary>
 22        /// Gets or sets the ISBN.
 23        /// </summary>
 24        public long? Isbn { get; set; }
 25
 26        /// <summary>
 27        /// Gets a collection of the publishers for this book.
 28        /// </summary>
 29        public virtual ICollection<Company> Publishers { get; private set; }
 30
 31        /// <inheritdoc />
 032        public ICollection<Company> Companies => Publishers;
 33    }
 34}