namespace EDPlayerJournal.Entries; public class MarketSellEntry : Entry { /// /// Total value /// public int TotalSale { get; set; } /// /// How many. /// public int Count { get; set; } /// /// Average price paid /// public int AvgPricePaid { get; set; } /// /// Cargo type /// public string? Type { get; set; } /// /// Localised name of the cargo sold, may be null. /// public string? TypeLocalised { get; set; } /// /// Price per unit /// public int SellPrice { get; set; } /// /// Whether the goods were illegal in the target system. /// public bool IllegalGoods { get; set; } /// /// Whether the goods were stolen /// public bool StolenGoods { get; set; } /// /// Whether the goods were sold to the black market /// public bool BlackMarket { get; set; } protected override void Initialise() { Type = JSON.Value("Type"); TypeLocalised = JSON.Value("Type_Localised"); TotalSale = JSON.Value("TotalSale") ?? 0; Count = JSON.Value("Count") ?? 0; AvgPricePaid = JSON.Value("AvgPricePaid") ?? 0; IllegalGoods = JSON.Value("IllegalGoods") ?? false; StolenGoods = JSON.Value("StolenGoods") ?? false; BlackMarket = JSON.Value("BlackMarket") ?? false; } }