using System;
using System.ComponentModel.DataAnnotations;
namespace Jellyfin.Data.Entities.Libraries
{
    /// 
    /// An entity containing metadata for an .
    /// 
    public class EpisodeMetadata : ItemMetadata
    {
        /// 
        /// Initializes a new instance of the  class.
        /// 
        /// The title or name of the object.
        /// ISO-639-3 3-character language codes.
        /// The episode.
        public EpisodeMetadata(string title, string language, Episode episode) : base(title, language)
        {
            if (episode == null)
            {
                throw new ArgumentNullException(nameof(episode));
            }
            episode.EpisodeMetadata.Add(this);
        }
        /// 
        /// Initializes a new instance of the  class.
        /// 
        /// 
        /// Default constructor. Protected due to required properties, but present because EF needs it.
        /// 
        protected EpisodeMetadata()
        {
        }
        /// 
        /// Gets or sets the outline.
        /// 
        /// 
        /// Max length = 1024.
        /// 
        [MaxLength(1024)]
        [StringLength(1024)]
        public string Outline { get; set; }
        /// 
        /// Gets or sets the plot.
        /// 
        /// 
        /// Max length = 65535.
        /// 
        [MaxLength(65535)]
        [StringLength(65535)]
        public string Plot { get; set; }
        /// 
        /// Gets or sets the tagline.
        /// 
        /// 
        /// Max length = 1024.
        /// 
        [MaxLength(1024)]
        [StringLength(1024)]
        public string Tagline { get; set; }
    }
}