2021-11-17 20:54:58 +01:00
|
|
|
|
using Newtonsoft.Json.Linq;
|
2021-08-25 18:24:44 +02:00
|
|
|
|
|
|
|
|
|
namespace EDJournal {
|
|
|
|
|
public class DockedEntry : Entry {
|
2021-11-17 20:54:58 +01:00
|
|
|
|
public string StationName { get; set; }
|
|
|
|
|
public string StarSystem { get; set; }
|
|
|
|
|
public string StationFaction { get; set; }
|
|
|
|
|
|
|
|
|
|
protected override void Initialise() {
|
|
|
|
|
StationName = JSON.Value<string>("StationName") ?? "";
|
|
|
|
|
StarSystem = JSON.Value<string>("StarSystem") ?? "";
|
|
|
|
|
JObject faction = JSON.Value<JObject>("StationFaction");
|
|
|
|
|
if (faction != null) {
|
|
|
|
|
StationFaction = faction.Value<string>("Name") ?? "";
|
|
|
|
|
}
|
2021-08-25 18:24:44 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|