// <copyright file="MusicAlbum.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>

#pragma warning disable SA1128 // Put constructor initializers on their own line
#pragma warning disable CA1724

namespace Jellyfin.Database.Implementations.Entities.Libraries
{
    using System.Collections.Generic;

    /// <summary>
    /// An entity representing a music album.
    /// </summary>
    public class MusicAlbum : LibraryItem
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MusicAlbum"/> class.
        /// </summary>
        /// <param name="library">The library.</param>
        public MusicAlbum(Library library) : base(library)
        {
            this.MusicAlbumMetadata = new HashSet<MusicAlbumMetadata>();
            this.Tracks = new HashSet<Track>();
        }

        /// <summary>
        /// Gets a collection containing the album metadata.
        /// </summary>
        public virtual ICollection<MusicAlbumMetadata> MusicAlbumMetadata { get; private set; }

        /// <summary>
        /// Gets a collection containing the tracks.
        /// </summary>
        public virtual ICollection<Track> Tracks { get; private set; }
    }
}
