aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Libraries/CustomItem.cs
blob: 115489c786865b5282e9e94479a2378c4bac2455 (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
30
#pragma warning disable CA2227

using System.Collections.Generic;
using Jellyfin.Data.Interfaces;

namespace Jellyfin.Data.Entities.Libraries
{
    /// <summary>
    /// An entity representing a custom item.
    /// </summary>
    public class CustomItem : LibraryItem, IHasReleases
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomItem"/> class.
        /// </summary>
        public CustomItem()
        {
            CustomItemMetadata = new HashSet<CustomItemMetadata>();
            Releases = new HashSet<Release>();
        }

        /// <summary>
        /// Gets or sets a collection containing the metadata for this item.
        /// </summary>
        public virtual ICollection<CustomItemMetadata> CustomItemMetadata { get; protected set; }

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