CustomItem.cs 951 B

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