#pragma warning disable CA2227 using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Jellyfin.Data.Entities.Libraries { /// /// An entity holding the metadata for a music album. /// public class MusicAlbumMetadata : ItemMetadata { /// /// Initializes a new instance of the class. /// /// The title or name of the album. /// ISO-639-3 3-character language codes. public MusicAlbumMetadata(string title, string language) : base(title, language) { Labels = new HashSet(); } /// /// Gets or sets the barcode. /// /// /// Max length = 255. /// [MaxLength(255)] [StringLength(255)] public string Barcode { get; set; } /// /// Gets or sets the label number. /// /// /// Max length = 255. /// [MaxLength(255)] [StringLength(255)] public string LabelNumber { get; set; } /// /// Gets or sets the country code. /// /// /// Max length = 2. /// [MaxLength(2)] [StringLength(2)] public string Country { get; set; } /// /// Gets or sets a collection containing the labels. /// public virtual ICollection Labels { get; protected set; } } }