aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Libraries/Movie.cs
blob: 499fafd0e1dd765b47123b2a9ce9e28b3617f39f (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.Data.Interfaces;

namespace Jellyfin.Data.Entities.Libraries
{
    /// <summary>
    /// An entity representing a movie.
    /// </summary>
    public class Movie : LibraryItem, IHasReleases
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Movie"/> class.
        /// </summary>
        /// <param name="library">The library.</param>
        public Movie(Library library) : base(library)
        {
            Releases = new HashSet<Release>();
            MovieMetadata = new HashSet<MovieMetadata>();
        }

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

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