-
Notifications
You must be signed in to change notification settings - Fork 803
Expand file tree
/
Copy pathLocalizationInfo.cs
More file actions
59 lines (50 loc) · 1.63 KB
/
LocalizationInfo.cs
File metadata and controls
59 lines (50 loc) · 1.63 KB
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
54
55
56
57
58
59
using System;
namespace NETworkManager.Localization;
/// <summary>
/// Class to hold all information's about a localization.
/// </summary>
public class LocalizationInfo
{
/// <summary>
/// Create an empty instance of <see cref="LocalizationInfo" />.
/// </summary>
public LocalizationInfo()
{
}
/// <summary>
/// Create an instance of <see cref="LocalizationInfo" /> with all parameters.
/// </summary>
/// <param name="name"><see cref="Name" />.</param>
/// <param name="nativeName"><see cref="NativeName" />.</param>
/// <param name="flagUri"><see cref="FlagUri" />.</param>
/// <param name="code"><see cref="Code" />.</param>
/// <param name="isOfficial"><see cref="IsOfficial" />.</param>
public LocalizationInfo(string name, string nativeName, Uri flagUri, string code, bool isOfficial = false)
{
Name = name;
NativeName = nativeName;
FlagUri = flagUri;
Code = code;
IsOfficial = isOfficial;
}
/// <summary>
/// Name of the Language.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Native name of the language.
/// </summary>
public string NativeName { get; set; }
/// <summary>
/// Uri of the country flag.
/// </summary>
public Uri FlagUri { get; set; }
/// <summary>
/// Culture code of the language.
/// </summary>
public string Code { get; set; }
/// <summary>
/// Indicates whether the language has been translated by the maintainer or the community
/// </summary>
public bool IsOfficial { get; set; }
}