CustomItem.cs 995 B

12345678910111213141516171819202122232425262728293031
  1. #pragma warning disable CA2227
  2. using System.Collections.Generic;
  3. using Jellyfin.Data.Interfaces;
  4. namespace Jellyfin.Data.Entities.Libraries
  5. {
  6. /// <summary>
  7. /// An entity representing a custom item.
  8. /// </summary>
  9. public class CustomItem : LibraryItem, IHasReleases
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="CustomItem"/> class.
  13. /// </summary>
  14. /// <param name="library">The library.</param>
  15. public CustomItem(Library library) : base(library)
  16. {
  17. CustomItemMetadata = new HashSet<CustomItemMetadata>();
  18. Releases = new HashSet<Release>();
  19. }
  20. /// <summary>
  21. /// Gets or sets a collection containing the metadata for this item.
  22. /// </summary>
  23. public virtual ICollection<CustomItemMetadata> CustomItemMetadata { get; protected set; }
  24. /// <inheritdoc />
  25. public virtual ICollection<Release> Releases { get; protected set; }
  26. }
  27. }