mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
#pragma warning disable CA2227
|
|
|
|
using System.Collections.Generic;
|
|
using Jellyfin.Data.Interfaces;
|
|
|
|
namespace Jellyfin.Data.Entities.Libraries
|
|
{
|
|
/// <summary>
|
|
/// An entity representing a track.
|
|
/// </summary>
|
|
public class Track : LibraryItem, IHasReleases
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Track"/> class.
|
|
/// </summary>
|
|
/// <param name="library">The library.</param>
|
|
public Track(Library library) : base(library)
|
|
{
|
|
Releases = new HashSet<Release>();
|
|
TrackMetadata = new HashSet<TrackMetadata>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the track number.
|
|
/// </summary>
|
|
public int? TrackNumber { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public virtual ICollection<Release> Releases { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a collection containing the track metadata.
|
|
/// </summary>
|
|
public virtual ICollection<TrackMetadata> TrackMetadata { get; protected set; }
|
|
}
|
|
}
|