mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using Jellyfin.Data.Interfaces;
|
|
|
|
namespace Jellyfin.Data.Entities.Libraries
|
|
{
|
|
/// <summary>
|
|
/// An entity containing metadata for a book.
|
|
/// </summary>
|
|
public class BookMetadata : ItemMetadata, IHasCompanies
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="BookMetadata"/> class.
|
|
/// </summary>
|
|
/// <param name="title">The title or name of the object.</param>
|
|
/// <param name="language">ISO-639-3 3-character language codes.</param>
|
|
public BookMetadata(string title, string language) : base(title, language)
|
|
{
|
|
Publishers = new HashSet<Company>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the ISBN.
|
|
/// </summary>
|
|
public long? Isbn { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets a collection of the publishers for this book.
|
|
/// </summary>
|
|
public virtual ICollection<Company> Publishers { get; private set; }
|
|
|
|
/// <inheritdoc />
|
|
public ICollection<Company> Companies => Publishers;
|
|
}
|
|
}
|