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