This commit is contained in:
38
server/models/TranslationItem.cs
Normal file
38
server/models/TranslationItem.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sockeye.Biz;
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Sockeye.Models
|
||||
{
|
||||
|
||||
public class TranslationItem
|
||||
{
|
||||
public TranslationItem() { }
|
||||
public TranslationItem(TranslationItem t)
|
||||
{
|
||||
Id = t.Id;
|
||||
Concurrency = t.Concurrency;
|
||||
Key = t.Key;
|
||||
Display = t.Display;
|
||||
TranslationId = t.TranslationId;
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Key { get; set; }
|
||||
//NOTE: due to various UI fuckery this is not set to required here so that the biz object
|
||||
//validate code can fix it up automatically instead
|
||||
public string Display { get; set; }
|
||||
|
||||
public long TranslationId { get; set; }
|
||||
|
||||
//Relation
|
||||
[JsonIgnore]
|
||||
public Translation Translation { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user