MusicAlbum.cs 1012 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma warning disable CA2227
  2. using System.Collections.Generic;
  3. namespace Jellyfin.Data.Entities.Libraries
  4. {
  5. /// <summary>
  6. /// An entity representing a music album.
  7. /// </summary>
  8. public class MusicAlbum : LibraryItem
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="MusicAlbum"/> class.
  12. /// </summary>
  13. /// <param name="library">The library.</param>
  14. public MusicAlbum(Library library) : base(library)
  15. {
  16. MusicAlbumMetadata = new HashSet<MusicAlbumMetadata>();
  17. Tracks = new HashSet<Track>();
  18. }
  19. /// <summary>
  20. /// Gets or sets a collection containing the album metadata.
  21. /// </summary>
  22. public virtual ICollection<MusicAlbumMetadata> MusicAlbumMetadata { get; protected set; }
  23. /// <summary>
  24. /// Gets or sets a collection containing the tracks.
  25. /// </summary>
  26. public virtual ICollection<Track> Tracks { get; protected set; }
  27. }
  28. }