#pragma warning disable CA2227
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Jellyfin.Data.Interfaces;
namespace Jellyfin.Data.Entities.Libraries
{
///
/// An entity holding the metadata for a movie.
///
public class MovieMetadata : ItemMetadata, IHasCompanies
{
///
/// Initializes a new instance of the class.
///
/// The title or name of the movie.
/// ISO-639-3 3-character language codes.
public MovieMetadata(string title, string language) : base(title, language)
{
Studios = new HashSet();
}
///
/// Gets or sets the outline.
///
///
/// Max length = 1024.
///
[MaxLength(1024)]
[StringLength(1024)]
public string Outline { get; set; }
///
/// Gets or sets the tagline.
///
///
/// Max length = 1024.
///
[MaxLength(1024)]
[StringLength(1024)]
public string Tagline { get; set; }
///
/// Gets or sets the plot.
///
///
/// Max length = 65535.
///
[MaxLength(65535)]
[StringLength(65535)]
public string Plot { get; set; }
///
/// Gets or sets the country code.
///
///
/// Max length = 2.
///
[MaxLength(2)]
[StringLength(2)]
public string Country { get; set; }
///
/// Gets or sets the studios that produced this movie.
///
public virtual ICollection Studios { get; protected set; }
///
[NotMapped]
public ICollection Companies => Studios;
}
}