namespace EDJournal { public class MissionAcceptedEntry : Entry { private string faction = null; private string name = null; private string localisedname = null; private string localisedtargettype = null; private int killcount = 0; private int missionid = 0; private int reward = 0; public string Faction => faction; public string Name => name; public string LocalisedName => localisedname; public string LocalisedTargetType => localisedtargettype; public int KillCount => killcount; public int MissionID => missionid; public int Reward => reward; protected override void Initialise() { faction = JSON.Value("Faction") ?? ""; name = JSON.Value("Name") ?? ""; localisedname = JSON.Value("LocalisedName") ?? ""; localisedtargettype = JSON.Value("TargetType_Localised") ?? ""; killcount = JSON.Value("KillCount") ?? 0; missionid = JSON.Value("MissionID") ?? 0; reward = JSON.Value("Reward") ?? 0; } } }