EpisodeMetadata.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Jellyfin.Data.Entities.Libraries
  3. {
  4. /// <summary>
  5. /// An entity containing metadata for an <see cref="Episode"/>.
  6. /// </summary>
  7. public class EpisodeMetadata : ItemMetadata
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="EpisodeMetadata"/> class.
  11. /// </summary>
  12. /// <param name="title">The title or name of the object.</param>
  13. /// <param name="language">ISO-639-3 3-character language codes.</param>
  14. public EpisodeMetadata(string title, string language) : base(title, language)
  15. {
  16. }
  17. /// <summary>
  18. /// Gets or sets the outline.
  19. /// </summary>
  20. /// <remarks>
  21. /// Max length = 1024.
  22. /// </remarks>
  23. [MaxLength(1024)]
  24. [StringLength(1024)]
  25. public string? Outline { get; set; }
  26. /// <summary>
  27. /// Gets or sets the plot.
  28. /// </summary>
  29. /// <remarks>
  30. /// Max length = 65535.
  31. /// </remarks>
  32. [MaxLength(65535)]
  33. [StringLength(65535)]
  34. public string? Plot { get; set; }
  35. /// <summary>
  36. /// Gets or sets the tagline.
  37. /// </summary>
  38. /// <remarks>
  39. /// Max length = 1024.
  40. /// </remarks>
  41. [MaxLength(1024)]
  42. [StringLength(1024)]
  43. public string? Tagline { get; set; }
  44. }
  45. }