mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
acb213e4b8
- Documents all library entities - Fixes styling warnings for library entities - Updates library entities to inherit from interfaces - Makes library entites no longer partial.
29 lines
828 B
C#
29 lines
828 B
C#
using System.Collections.Generic;
|
|
using Jellyfin.Data.Interfaces;
|
|
|
|
namespace Jellyfin.Data.Entities.Libraries
|
|
{
|
|
/// <summary>
|
|
/// An entity representing a book.
|
|
/// </summary>
|
|
public class Book : LibraryItem, IHasReleases
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Book"/> class.
|
|
/// </summary>
|
|
public Book()
|
|
{
|
|
BookMetadata = new HashSet<BookMetadata>();
|
|
Releases = new HashSet<Release>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets a collection containing the metadata for this book.
|
|
/// </summary>
|
|
public virtual ICollection<BookMetadata> BookMetadata { get; protected set; }
|
|
|
|
/// <inheritdoc />
|
|
public virtual ICollection<Release> Releases { get; protected set; }
|
|
}
|
|
}
|