CompanyMetadata.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System.ComponentModel.DataAnnotations;
  2. namespace Jellyfin.Data.Entities.Libraries
  3. {
  4. /// <summary>
  5. /// An entity holding metadata for a <see cref="Company"/>.
  6. /// </summary>
  7. public class CompanyMetadata : ItemMetadata
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="CompanyMetadata"/> 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 CompanyMetadata(string title, string language) : base(title, language)
  15. {
  16. }
  17. /// <summary>
  18. /// Gets or sets the description.
  19. /// </summary>
  20. /// <remarks>
  21. /// Max length = 65535.
  22. /// </remarks>
  23. [MaxLength(65535)]
  24. [StringLength(65535)]
  25. public string? Description { get; set; }
  26. /// <summary>
  27. /// Gets or sets the headquarters.
  28. /// </summary>
  29. /// <remarks>
  30. /// Max length = 255.
  31. /// </remarks>
  32. [MaxLength(255)]
  33. [StringLength(255)]
  34. public string? Headquarters { get; set; }
  35. /// <summary>
  36. /// Gets or sets the country code.
  37. /// </summary>
  38. /// <remarks>
  39. /// Max length = 2.
  40. /// </remarks>
  41. [MaxLength(2)]
  42. [StringLength(2)]
  43. public string? Country { get; set; }
  44. /// <summary>
  45. /// Gets or sets the homepage.
  46. /// </summary>
  47. /// <remarks>
  48. /// Max length = 1024.
  49. /// </remarks>
  50. [MaxLength(1024)]
  51. [StringLength(1024)]
  52. public string? Homepage { get; set; }
  53. }
  54. }