namespace EDPlayerJournal.Entries; public class EmbarkEntry : Entry { /// /// Disembarked into an SRV? /// public bool SRV { get; set; } = false; /// /// Taxi? /// public bool Taxi { get; set; } = false; /// /// Multicrew or not. /// public bool Multicrew { get; set; } = false; /// /// Player's ship ID /// public ulong? ID { get; set; } /// /// Star system /// public string? StarSystem { get; set; } /// /// System address /// public ulong? SystemAddress { get; set; } /// /// Body, name e.g. HIP 6182 B 2 a /// public string? Body { get; set; } /// /// Body ID /// public ulong? BodyID { get; set; } /// /// Disembarked on a station? /// public bool OnStation { get; set; } = false; /// /// Disembarked on a planet? /// public bool OnPlanet { get; set; } = false; protected override void Initialise() { SRV = JSON.Value("SRV") ?? false; Taxi = JSON.Value("Taxi") ?? false; Multicrew = JSON.Value("Multicrew") ?? false; ID = JSON.Value("ID"); StarSystem = JSON.Value("StarSystem"); SystemAddress = JSON.Value("SystemAddress"); Body = JSON.Value("Body"); BodyID = JSON.Value("BodyID"); OnStation = JSON.Value("OnStation") ?? false; OnPlanet = JSON.Value("OnPlanet") ?? false; } }