diff --git a/MissionAcceptedEntry.cs b/MissionAcceptedEntry.cs index 0df0909..754c3c8 100644 --- a/MissionAcceptedEntry.cs +++ b/MissionAcceptedEntry.cs @@ -1,33 +1,24 @@  namespace EDJournal { public class MissionAcceptedEntry : Entry { - private string faction = null; - private string targetfaction = 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 TargetFaction => targetfaction; - public string Name => name; - public string LocalisedName => localisedname; - public string LocalisedTargetType => localisedtargettype; - public int KillCount => killcount; - public int MissionID => missionid; - public int Reward => reward; + public string Faction { get; set; } + public string TargetFaction { get; set; } + public string Name { get; set; } + public string LocalisedName { get; set; } + public string LocalisedTargetType { get; set; } + public int KillCount { get; set; } + public ulong MissionID { get; set; } + public long Reward { get; set; } protected override void Initialise() { - faction = JSON.Value("Faction") ?? ""; - targetfaction = JSON.Value("TargetFaction") ?? ""; - 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; + Faction = JSON.Value("Faction") ?? ""; + TargetFaction = JSON.Value("TargetFaction") ?? ""; + 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; } } }