32 lines
654 B
C#
32 lines
654 B
C#
namespace Modules.Library.Domain.Entities.MediaContent.CommonProperties;
|
|
|
|
public class NameItem : Entity
|
|
{
|
|
[Required]
|
|
public string Value { get; set; } = string.Empty;
|
|
public NameType Type { get; set; }
|
|
[Required]
|
|
public Guid LanguageId { get; set; } = default!;
|
|
|
|
private NameItem() { }
|
|
|
|
internal NameItem(Guid languageId, NameType type, string value)
|
|
{
|
|
LanguageId = languageId;
|
|
Type = type;
|
|
Value = value;
|
|
}
|
|
|
|
public void SetValue(string value)
|
|
{
|
|
Value = value;
|
|
}
|
|
}
|
|
|
|
public enum NameType
|
|
{
|
|
Original,
|
|
OriginalInAnotherLanguage,
|
|
Translation,
|
|
Abbreviation,
|
|
} |