namespace EDPlayerJournal.Entries; public class ApproachSettlementEntry : Entry { /// /// Settlement name /// public string? Name { get; set; } = null; /// /// Market ID of the settlement /// public long? MarketID { get; set; } = null; /// /// System ID /// public long? SystemAddress { get; set; } = null; /// /// Body ID /// public long? BodyID { get; set; } = null; /// /// Name of the planet /// public string? BodyName { get; set; } = null; /// /// Planet latitude /// public double Latitude { get; set; } = 0.0; /// /// Planet longitude /// public double Longitude { get; set; } = 0.0; protected override void Initialise() { Name = JSON.Value("Name"); MarketID = JSON.Value("MarketID"); SystemAddress = JSON.Value("SystemID"); BodyID = JSON.Value("BodyID"); BodyName = JSON.Value("BodyName"); Longitude = JSON.Value("Longitude") ?? 0.0; Latitude = JSON.Value("Latitude") ?? 0.0; } }