2020-09-01 17:36:45 +02:00
|
|
|
#pragma warning disable CA2227
|
|
|
|
|
2019-06-01 22:40:01 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
2020-08-29 19:30:09 +02:00
|
|
|
namespace Jellyfin.Data.Entities.Libraries
|
2019-06-01 22:40:01 +02:00
|
|
|
{
|
2020-08-31 00:50:54 +02:00
|
|
|
/// <summary>
|
|
|
|
/// An entity holding the metadata for a music album.
|
|
|
|
/// </summary>
|
2020-09-01 17:38:09 +02:00
|
|
|
public class MusicAlbumMetadata : ItemMetadata
|
2020-05-02 23:56:05 +02:00
|
|
|
{
|
|
|
|
/// <summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// Initializes a new instance of the <see cref="MusicAlbumMetadata"/> class.
|
2020-05-02 23:56:05 +02:00
|
|
|
/// </summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// <param name="title">The title or name of the album.</param>
|
2020-06-19 12:21:49 +02:00
|
|
|
/// <param name="language">ISO-639-3 3-character language codes.</param>
|
2021-03-06 22:17:19 +01:00
|
|
|
public MusicAlbumMetadata(string title, string language) : base(title, language)
|
2020-05-02 23:56:05 +02:00
|
|
|
{
|
2020-08-31 00:50:54 +02:00
|
|
|
Labels = new HashSet<Company>();
|
2020-05-02 23:56:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// Gets or sets the barcode.
|
2020-05-02 23:56:05 +02:00
|
|
|
/// </summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// <remarks>
|
|
|
|
/// Max length = 255.
|
|
|
|
/// </remarks>
|
2020-05-02 23:56:05 +02:00
|
|
|
[MaxLength(255)]
|
|
|
|
[StringLength(255)]
|
2020-08-31 00:50:54 +02:00
|
|
|
public string Barcode { get; set; }
|
2020-06-15 23:43:52 +02:00
|
|
|
|
2020-05-02 23:56:05 +02:00
|
|
|
/// <summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// Gets or sets the label number.
|
2020-05-02 23:56:05 +02:00
|
|
|
/// </summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// <remarks>
|
|
|
|
/// Max length = 255.
|
|
|
|
/// </remarks>
|
2020-05-02 23:56:05 +02:00
|
|
|
[MaxLength(255)]
|
|
|
|
[StringLength(255)]
|
2020-08-31 00:50:54 +02:00
|
|
|
public string LabelNumber { get; set; }
|
2020-05-02 23:56:05 +02:00
|
|
|
|
|
|
|
/// <summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// Gets or sets the country code.
|
2020-05-02 23:56:05 +02:00
|
|
|
/// </summary>
|
2020-08-31 00:50:54 +02:00
|
|
|
/// <remarks>
|
|
|
|
/// Max length = 2.
|
|
|
|
/// </remarks>
|
2020-05-02 23:56:05 +02:00
|
|
|
[MaxLength(2)]
|
|
|
|
[StringLength(2)]
|
2020-08-31 00:50:54 +02:00
|
|
|
public string Country { get; set; }
|
2019-06-01 22:40:01 +02:00
|
|
|
|
2020-08-31 00:50:54 +02:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a collection containing the labels.
|
|
|
|
/// </summary>
|
2020-05-02 23:56:05 +02:00
|
|
|
public virtual ICollection<Company> Labels { get; protected set; }
|
|
|
|
}
|
2019-06-01 22:40:01 +02:00
|
|
|
}
|