edjournal/FSDJumpEntry.cs

19 lines
584 B
C#

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;
}
}