using System; using System.Collections.Generic; namespace EDJournal { public class ShipTargetedEntry : Entry { public string Ship { get; set; } public long ScanStage { get; set; } public string PilotName { get; set; } public string PilotNameLocalised { get; set; } public string PilotRank { get; set; } public double ShieldHealth { get; set; } public double HullHealth { get; set; } public long Bounty { get; set; } public string LegalStatus { get; set; } public string Faction { get; set; } public string Power { get; set; } protected override void Initialise() { ScanStage = JSON.Value("ScanStage") ?? 0; Ship = JSON.Value("Ship_Localised") ?? ""; PilotName = JSON.Value("PilotName") ?? ""; PilotNameLocalised = JSON.Value("PilotName_Localised") ?? ""; PilotRank = JSON.Value("PilotRank") ?? ""; ShieldHealth = JSON.Value("ShieldHealth") ?? 0.0; HullHealth = JSON.Value("HullHealth") ?? 0.0; Bounty = JSON.Value("Bounty") ?? 0; LegalStatus = JSON.Value("LegalStatus") ?? "Clean"; Faction = JSON.Value("Faction") ?? ""; Power = JSON.Value("Power") ?? ""; } } }