Photo.cs 902 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 photo.
  7. /// </summary>
  8. public class Photo : LibraryItem, IHasReleases
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="Photo"/> class.
  12. /// </summary>
  13. /// <param name="library">The library.</param>
  14. public Photo(Library library) : base(library)
  15. {
  16. PhotoMetadata = new HashSet<PhotoMetadata>();
  17. Releases = new HashSet<Release>();
  18. }
  19. /// <summary>
  20. /// Gets a collection containing the photo metadata.
  21. /// </summary>
  22. public virtual ICollection<PhotoMetadata> PhotoMetadata { get; private set; }
  23. /// <inheritdoc />
  24. public virtual ICollection<Release> Releases { get; private set; }
  25. }
  26. }