edjournal/FSDJumpEntry.cs

19 lines
584 B
C#
Raw Normal View History

2021-08-25 18:24:44 +02:00
using Newtonsoft.Json.Linq;
namespace EDJournal {
public class FSDJumpEntry : Entry {
private string starsystem = null;
private string systemfaction = null;
protected override void Initialise() {
starsystem = JSON.Value<string>("StarSystem");
var faction = JSON.Value<JObject>("SystemFaction");
if (faction != null) {
systemfaction = faction.Value<string>("Name");
}
}
public string StarSystem => starsystem;
public string SystemFaction => systemfaction;
}
}