You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.0 KiB
71 lines
2.0 KiB
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Jellyfin.Data.Interfaces;
|
|
|
|
namespace Jellyfin.Data.Entities.Libraries
|
|
{
|
|
/// <summary>
|
|
/// An entity representing series metadata.
|
|
/// </summary>
|
|
public class SeriesMetadata : ItemMetadata, IHasCompanies
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SeriesMetadata"/> 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 SeriesMetadata(string title, string language) : base(title, language)
|
|
{
|
|
Networks = new HashSet<Company>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the outline.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Max length = 1024.
|
|
/// </remarks>
|
|
[MaxLength(1024)]
|
|
[StringLength(1024)]
|
|
public string? Outline { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the plot.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Max length = 65535.
|
|
/// </remarks>
|
|
[MaxLength(65535)]
|
|
[StringLength(65535)]
|
|
public string? Plot { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the tagline.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Max length = 1024.
|
|
/// </remarks>
|
|
[MaxLength(1024)]
|
|
[StringLength(1024)]
|
|
public string? Tagline { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the country code.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Max length = 2.
|
|
/// </remarks>
|
|
[MaxLength(2)]
|
|
[StringLength(2)]
|
|
public string? Country { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets a collection containing the networks.
|
|
/// </summary>
|
|
public virtual ICollection<Company> Networks { get; private set; }
|
|
|
|
/// <inheritdoc />
|
|
public ICollection<Company> Companies => Networks;
|
|
}
|
|
}
|