improve organic data formatting

This commit is contained in:
Florian Stinglmayr 2022-12-14 20:18:20 +01:00
parent 271b151a72
commit 86d27fb2a3

View File

@ -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> BioData => new List<BioData>();
public List<BioData> BioData { get; } = new();
protected override void Initialise() {
MarketID = JSON.Value<long?>("MarketID") ?? 0;