forked from badvectors/ATISPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathATISLine.cs
More file actions
34 lines (33 loc) · 1.02 KB
/
ATISLine.cs
File metadata and controls
34 lines (33 loc) · 1.02 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
namespace ATISPlugin
{
public class ATISLine
{
public int Number { get; set; }
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,
int number,
string type = "Edit",
bool nameSpoken = false,
bool numbersGrouped = false,
string value = null,
METARField field = METARField.None)
{
Name = name;
Number = number;
Type = type;
NameSpoken = nameSpoken;
NumbersGrouped = numbersGrouped;
Value = value?.ToUpper();
METARField = field;
}
}
}