change types to long

This commit is contained in:
Florian Stinglmayr 2022-01-26 09:39:58 +01:00
parent 47cb08b799
commit 7684438ce2

View File

@ -8,16 +8,16 @@ namespace EDJournal {
public class MarketBuyEntry : Entry {
public string Type { get; set; }
public string TypeLocalised { get; set; }
public int Count { get; set; }
public int BuyPrice { get; set; }
public int TotalCost { get; set; }
public long Count { get; set; }
public long BuyPrice { get; set; }
public long TotalCost { get; set; }
protected override void Initialise() {
Type = JSON.Value<string>("Type") ?? "";
TypeLocalised = JSON.Value<string>("Type_Localised") ?? "";
Count = JSON.Value<int?>("Count") ?? 0;
BuyPrice = JSON.Value<int?>("BuyPrice") ?? 0;
TotalCost = JSON.Value<int?>("TotalCost") ?? 0;
Count = JSON.Value<long?>("Count") ?? 0;
BuyPrice = JSON.Value<long?>("BuyPrice") ?? 0;
TotalCost = JSON.Value<long?>("TotalCost") ?? 0;
}
}
}