2019-06-01 20:40:01 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-08-30 22:50:54 +00:00
|
|
|
using Jellyfin.Data.Interfaces;
|
2019-06-01 20:40:01 +00:00
|
|
|
|
2020-08-29 17:30:09 +00:00
|
|
|
namespace Jellyfin.Data.Entities.Libraries
|
2019-06-01 20:40:01 +00:00
|
|
|
{
|
2020-08-30 22:50:54 +00:00
|
|
|
/// <summary>
|
|
|
|
/// An entity holding the metadata for a movie.
|
|
|
|
/// </summary>
|
2020-09-01 15:38:09 +00:00
|
|
|
public class MovieMetadata : ItemMetadata, IHasCompanies
|
2020-05-02 21:56:05 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// Initializes a new instance of the <see cref="MovieMetadata"/> class.
|
2020-05-02 21:56:05 +00:00
|
|
|
/// </summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// <param name="title">The title or name of the movie.</param>
|
2020-06-19 10:21:49 +00:00
|
|
|
/// <param name="language">ISO-639-3 3-character language codes.</param>
|
2021-03-06 21:17:19 +00:00
|
|
|
public MovieMetadata(string title, string language) : base(title, language)
|
2020-05-02 21:56:05 +00:00
|
|
|
{
|
2020-08-30 22:50:54 +00:00
|
|
|
Studios = new HashSet<Company>();
|
2020-05-02 21:56:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// Gets or sets the outline.
|
2020-05-02 21:56:05 +00:00
|
|
|
/// </summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// <remarks>
|
|
|
|
/// Max length = 1024.
|
|
|
|
/// </remarks>
|
2020-05-02 21:56:05 +00:00
|
|
|
[MaxLength(1024)]
|
|
|
|
[StringLength(1024)]
|
2021-03-06 22:43:01 +00:00
|
|
|
public string? Outline { get; set; }
|
2020-05-02 21:56:05 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// Gets or sets the tagline.
|
2020-05-02 21:56:05 +00:00
|
|
|
/// </summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// <remarks>
|
|
|
|
/// Max length = 1024.
|
|
|
|
/// </remarks>
|
2020-05-02 21:56:05 +00:00
|
|
|
[MaxLength(1024)]
|
|
|
|
[StringLength(1024)]
|
2021-03-06 22:43:01 +00:00
|
|
|
public string? Tagline { get; set; }
|
2020-05-02 21:56:05 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// Gets or sets the plot.
|
2020-05-02 21:56:05 +00:00
|
|
|
/// </summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// <remarks>
|
|
|
|
/// Max length = 65535.
|
|
|
|
/// </remarks>
|
|
|
|
[MaxLength(65535)]
|
|
|
|
[StringLength(65535)]
|
2021-03-06 22:43:01 +00:00
|
|
|
public string? Plot { get; set; }
|
2020-05-02 21:56:05 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// Gets or sets the country code.
|
2020-05-02 21:56:05 +00:00
|
|
|
/// </summary>
|
2020-08-30 22:50:54 +00:00
|
|
|
/// <remarks>
|
|
|
|
/// Max length = 2.
|
|
|
|
/// </remarks>
|
2020-05-02 21:56:05 +00:00
|
|
|
[MaxLength(2)]
|
|
|
|
[StringLength(2)]
|
2021-03-06 22:43:01 +00:00
|
|
|
public string? Country { get; set; }
|
2019-06-01 20:40:01 +00:00
|
|
|
|
2020-08-30 22:50:54 +00:00
|
|
|
/// <summary>
|
2021-03-17 23:08:11 +00:00
|
|
|
/// Gets the studios that produced this movie.
|
2020-08-30 22:50:54 +00:00
|
|
|
/// </summary>
|
2021-03-17 23:08:11 +00:00
|
|
|
public virtual ICollection<Company> Studios { get; private set; }
|
2020-08-30 22:50:54 +00:00
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public ICollection<Company> Companies => Studios;
|
2020-05-02 21:56:05 +00:00
|
|
|
}
|
2019-06-01 20:40:01 +00:00
|
|
|
}
|