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