-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathBgsWatch.cs
More file actions
45 lines (36 loc) · 1.19 KB
/
BgsWatch.cs
File metadata and controls
45 lines (36 loc) · 1.19 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
using Newtonsoft.Json;
using System.ComponentModel;
namespace EddiDataDefinitions
{
/// <summary>
/// The parameters to match EDDP messages
/// </summary>
public class BgsWatch : INotifyPropertyChanged
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("system")]
public string System { get; set; }
[JsonProperty("station")]
public string Station { get; set; }
[JsonProperty("faction")]
public string Faction { get; set; }
[JsonProperty("state")]
public FactionState State
{
get { return _state; }
set { _state = value; OnPropertyChanged("State"); }
}
private FactionState _state;
[JsonProperty("maxdistancefromship")]
public long? MaxDistanceFromShip { get; set; }
[JsonProperty("maxdistancefromhome")]
public long? MaxDistanceFromHome { get; set; }
public BgsWatch() { }
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string name)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
}
}
}