// <copyright file="Book.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;
    using Jellyfin.Database.Implementations.Interfaces;

    /// <summary>
    /// An entity representing a book.
    /// </summary>
    public class Book : LibraryItem, IHasReleases
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Book"/> class.
        /// </summary>
        /// <param name="library">The library.</param>
        public Book(Library library) : base(library)
        {
            this.BookMetadata = new HashSet<BookMetadata>();
            this.Releases = new HashSet<Release>();
        }

        /// <summary>
        /// Gets a collection containing the metadata for this book.
        /// </summary>
        public virtual ICollection<BookMetadata> BookMetadata { get; private set; }

        /// <inheritdoc />
        public virtual ICollection<Release> Releases { get; private set; }
    }
}
