jellyfin-server/Jellyfin.Data/Entities/Libraries/CompanyMetadata.cs

60 lines
1.7 KiB
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
2020-08-29 17:30:09 +00:00
namespace Jellyfin.Data.Entities.Libraries
{
/// <summary>
/// An entity holding metadata for a <see cref="Company"/>.
/// </summary>
2020-09-01 15:38:09 +00:00
public class CompanyMetadata : ItemMetadata
2020-05-02 21:56:05 +00:00
{
/// <summary>
/// Initializes a new instance of the <see cref="CompanyMetadata"/> class.
2020-05-02 21:56:05 +00:00
/// </summary>
2020-06-19 10:21:49 +00:00
/// <param name="title">The title or name of the object.</param>
/// <param name="language">ISO-639-3 3-character language codes.</param>
public CompanyMetadata(string title, string language) : base(title, language)
2020-05-02 21:56:05 +00:00
{
}
/// <summary>
/// Gets or sets the description.
2020-05-02 21:56:05 +00:00
/// </summary>
/// <remarks>
/// Max length = 65535.
/// </remarks>
2020-05-02 21:56:05 +00:00
[MaxLength(65535)]
[StringLength(65535)]
public string? Description { get; set; }
2020-05-02 21:56:05 +00:00
/// <summary>
/// Gets or sets the headquarters.
2020-05-02 21:56:05 +00:00
/// </summary>
/// <remarks>
/// Max length = 255.
/// </remarks>
2020-05-02 21:56:05 +00:00
[MaxLength(255)]
[StringLength(255)]
public string? Headquarters { get; set; }
2020-06-15 21:43:52 +00:00
2020-05-02 21:56:05 +00:00
/// <summary>
/// Gets or sets the country code.
2020-05-02 21:56:05 +00:00
/// </summary>
/// <remarks>
/// Max length = 2.
/// </remarks>
2020-05-02 21:56:05 +00:00
[MaxLength(2)]
[StringLength(2)]
public string? Country { get; set; }
2020-05-02 21:56:05 +00:00
/// <summary>
/// Gets or sets the homepage.
2020-05-02 21:56:05 +00:00
/// </summary>
/// <remarks>
/// Max length = 1024.
/// </remarks>
2020-05-02 21:56:05 +00:00
[MaxLength(1024)]
[StringLength(1024)]
public string? Homepage { get; set; }
2020-05-02 21:56:05 +00:00
}
}