< Summary - Jellyfin

Information
Class: Jellyfin.Data.Entities.Libraries.MusicAlbumMetadata
Assembly: Jellyfin.Data
File(s): /srv/git/jellyfin/Jellyfin.Data/Entities/Libraries/MusicAlbumMetadata.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 56
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/Jellyfin.Data/Entities/Libraries/MusicAlbumMetadata.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using System.ComponentModel.DataAnnotations;
 3
 4namespace Jellyfin.Data.Entities.Libraries
 5{
 6    /// <summary>
 7    /// An entity holding the metadata for a music album.
 8    /// </summary>
 9    public class MusicAlbumMetadata : ItemMetadata
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="MusicAlbumMetadata"/> class.
 13        /// </summary>
 14        /// <param name="title">The title or name of the album.</param>
 15        /// <param name="language">ISO-639-3 3-character language codes.</param>
 016        public MusicAlbumMetadata(string title, string language) : base(title, language)
 17        {
 018            Labels = new HashSet<Company>();
 019        }
 20
 21        /// <summary>
 22        /// Gets or sets the barcode.
 23        /// </summary>
 24        /// <remarks>
 25        /// Max length = 255.
 26        /// </remarks>
 27        [MaxLength(255)]
 28        [StringLength(255)]
 29        public string? Barcode { get; set; }
 30
 31        /// <summary>
 32        /// Gets or sets the label number.
 33        /// </summary>
 34        /// <remarks>
 35        /// Max length = 255.
 36        /// </remarks>
 37        [MaxLength(255)]
 38        [StringLength(255)]
 39        public string? LabelNumber { get; set; }
 40
 41        /// <summary>
 42        /// Gets or sets the country code.
 43        /// </summary>
 44        /// <remarks>
 45        /// Max length = 2.
 46        /// </remarks>
 47        [MaxLength(2)]
 48        [StringLength(2)]
 49        public string? Country { get; set; }
 50
 51        /// <summary>
 52        /// Gets a collection containing the labels.
 53        /// </summary>
 54        public virtual ICollection<Company> Labels { get; private set; }
 55    }
 56}