namespace EDJournal { public class CommitCrimeEntry : Entry { public string CrimeType { get; set; } public string Faction { get; set; } public string Victim { get; set; } public string VictimLocalised { get; set; } public long Bounty { get; set; } public long Fine { get; set; } protected override void Initialise() { CrimeType = JSON.Value("CrimeType") ?? "assault"; Faction = JSON.Value("Faction") ?? ""; Victim = JSON.Value("Victim") ?? ""; VictimLocalised = JSON.Value("Victim_Localised") ?? ""; Bounty = JSON.Value("Bounty") ?? 0; Fine = JSON.Value("Fine") ?? 0; } public bool IsMurder { get { return CrimeType?.CompareTo(CrimeTypes.Murder) == 0 || CrimeType?.CompareTo(CrimeTypes.OnFootMurder) == 0; } } } }