Files
mixtape/zero.Core/Entities/Translation.cs
T

49 lines
1009 B
C#
Raw Normal View History

2020-08-26 11:10:52 +02:00
using zero.Core.Attributes;
namespace zero.Core.Entities
2020-05-04 14:13:03 +02:00
{
2020-05-24 18:40:30 +02:00
public class Translation : ZeroEntity, ITranslation
2020-05-04 14:13:03 +02:00
{
/// <inheritdoc />
public string AppId { get; set; }
/// <inheritdoc />
public string LanguageId { get; set; }
2020-05-24 18:40:30 +02:00
/// <inheritdoc />
2020-05-04 14:13:03 +02:00
public string Key { get; set; }
2020-05-24 18:40:30 +02:00
/// <inheritdoc />
2020-05-04 14:13:03 +02:00
public string Value { get; set; }
2020-05-24 18:40:30 +02:00
/// <inheritdoc />
2020-05-04 14:13:03 +02:00
public TranslationDisplay Display { get; set; }
}
public enum TranslationDisplay
{
Text = 0,
HTML = 1
}
2020-05-24 18:40:30 +02:00
2020-08-26 11:10:52 +02:00
[Collection("Translations")]
public interface ITranslation : IZeroEntity, ILanguageAwareEntity, IAppAwareShareableEntity, IZeroDbConventions
2020-05-24 18:40:30 +02:00
{
/// <summary>
/// Key which can be used to query translations
/// </summary>
string Key { get; set; }
/// <summary>
/// Value of the translation
/// </summary>
string Value { get; set; }
/// <summary>
/// Display + input type
/// </summary>
TranslationDisplay Display { get; set; }
}
2020-05-04 14:13:03 +02:00
}