-
Notifications
You must be signed in to change notification settings - Fork 2
/
ATISLine.cs
31 lines (30 loc) · 958 Bytes
/
ATISLine.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
namespace ATISPlugin
{
public class ATISLine
{
public string Name { get; set; }
public string Type { get; set; } = "Edit";
public bool NameSpoken { get; set; }
public bool NumbersGrouped { get; set; }
public string Value { get; set ; }
public bool Visible => !string.IsNullOrWhiteSpace(Value);
public bool Enabled { get; set; } = true;
public bool Changed { get; set; }
public METARField METARField { get; set; }
public ATISLine(
string name,
string type = "Edit",
bool nameSpoken = false,
bool numbersGrouped = false,
string value = null,
METARField field = METARField.None)
{
Name = name;
Type = type;
NameSpoken = nameSpoken;
NumbersGrouped = numbersGrouped;
Value = value?.ToUpper();
METARField = field;
}
}
}