aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.Database/Jellyfin.Database.Implementations/Entities/Libraries/Photo.cs
blob: b113170e1d6e8b67965f8d387738a1ebd4618848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Collections.Generic;
using Jellyfin.Database.Implementations.Interfaces;

namespace Jellyfin.Database.Implementations.Entities.Libraries
{
    /// <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)
        {
            PhotoMetadata = new HashSet<PhotoMetadata>();
            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; }
    }
}