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

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

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

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

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

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