-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTranslationGroup.cs
53 lines (46 loc) · 1.74 KB
/
TranslationGroup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace OrdBaseCore.Models
{
//
// @note Instances of these classes only exists in memory, and are never stored in DB.
// This is mainly because a TranslationGroup is more structured data, which is not
// a good fit for a relational database. Also there is no new data to be stored here,
// as these classes represent the combination and structuring of existing 'flat' data
// from the Translation table. 'Flat' here meaning the opposite of structured data.
// - JSolsvik 31.07.2017
//
public class TranslationGroup
{
public class Item {
public string LanguageKey { get; set; }
public string Text { get; set; }
public bool IsComplete { get; set; }
}
public string Key { get; set; }
public string ClientKey { get; set; }
public string ContainerKey { get; set; }
public IEnumerable<Item> Items{ get; set; }
}
public class TranslationGroupMeta
{
public class Item
{
public string LanguageKey { get; set; }
public bool IsComplete { get; set; }
}
public string Key { get; set; }
public string ClientKey { get; set; }
public string ContainerKey { get; set; }
public IEnumerable<Item> Items { get; set; }
}
public class TranslationGroupQuery
{
[FromQuery(Name="clientKey")]
public string ClientKey { get; set; }
[FromQuery(Name="containerKey")]
public string ContainerKey { get; set; }
[FromQuery(Name="translationKey")]
public string TranslationKey { get; set; }
}
}