improve organic data formatting
This commit is contained in:
parent
271b151a72
commit
86d27fb2a3
@ -8,11 +8,17 @@ public class BioData {
|
|||||||
public string? SpeciesLocalised { get; set; }
|
public string? SpeciesLocalised { get; set; }
|
||||||
public long Value { get; set; } = 0;
|
public long Value { get; set; } = 0;
|
||||||
public long Bonus { 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 class SellOrganicDataEntry : Entry {
|
||||||
public long MarketID { get; set; }
|
public long MarketID { get; set; }
|
||||||
public List<BioData> BioData => new List<BioData>();
|
|
||||||
|
public List<BioData> BioData { get; } = new();
|
||||||
|
|
||||||
protected override void Initialise() {
|
protected override void Initialise() {
|
||||||
MarketID = JSON.Value<long?>("MarketID") ?? 0;
|
MarketID = JSON.Value<long?>("MarketID") ?? 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user