From 86d27fb2a39572a2afe1d217ce1013f280bdce37 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 14 Dec 2022 20:18:20 +0100 Subject: [PATCH] improve organic data formatting --- EDPlayerJournal/Entries/SellOrganicDataEntry.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/EDPlayerJournal/Entries/SellOrganicDataEntry.cs b/EDPlayerJournal/Entries/SellOrganicDataEntry.cs index 269c28b..b9d866f 100644 --- a/EDPlayerJournal/Entries/SellOrganicDataEntry.cs +++ b/EDPlayerJournal/Entries/SellOrganicDataEntry.cs @@ -8,11 +8,17 @@ public class BioData { public string? SpeciesLocalised { get; set; } public long Value { get; set; } = 0; public long Bonus { get; set; } = 0; - public long TotalValue => Value + Bonus; + + public long TotalValue { + get { + return Value + Bonus; + } + } } public class SellOrganicDataEntry : Entry { public long MarketID { get; set; } - public List BioData => new List(); + + public List BioData { get; } = new(); protected override void Initialise() { MarketID = JSON.Value("MarketID") ?? 0;