jellyfin-server/Jellyfin.Data/Entities/Libraries/BookMetadata.cs

35 lines
1.1 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using Jellyfin.Data.Interfaces;
2020-08-29 17:30:09 +00:00
namespace Jellyfin.Data.Entities.Libraries
{
/// <summary>
/// An entity containing metadata for a book.
/// </summary>
2020-09-01 15:38:09 +00:00
public class BookMetadata : ItemMetadata, IHasCompanies
2020-05-02 21:56:05 +00:00
{
/// <summary>
/// Initializes a new instance of the <see cref="BookMetadata"/> class.
2020-05-02 21:56:05 +00:00
/// </summary>
2020-06-19 10:21:49 +00:00
/// <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)
2020-05-02 21:56:05 +00:00
{
Publishers = new HashSet<Company>();
2020-05-02 21:56:05 +00:00
}
/// <summary>
/// Gets or sets the ISBN.
2020-05-02 21:56:05 +00:00
/// </summary>
public long? Isbn { get; set; }
2020-05-02 21:56:05 +00:00
/// <summary>
2021-03-17 23:08:11 +00:00
/// Gets a collection of the publishers for this book.
2020-05-02 21:56:05 +00:00
/// </summary>
2021-03-17 23:08:11 +00:00
public virtual ICollection<Company> Publishers { get; private set; }
/// <inheritdoc />
public ICollection<Company> Companies => Publishers;
2020-05-02 21:56:05 +00:00
}
}