change types to long
This commit is contained in:
parent
47cb08b799
commit
7684438ce2
@ -8,16 +8,16 @@ namespace EDJournal {
|
|||||||
public class MarketBuyEntry : Entry {
|
public class MarketBuyEntry : Entry {
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
public string TypeLocalised { get; set; }
|
public string TypeLocalised { get; set; }
|
||||||
public int Count { get; set; }
|
public long Count { get; set; }
|
||||||
public int BuyPrice { get; set; }
|
public long BuyPrice { get; set; }
|
||||||
public int TotalCost { get; set; }
|
public long TotalCost { get; set; }
|
||||||
|
|
||||||
protected override void Initialise() {
|
protected override void Initialise() {
|
||||||
Type = JSON.Value<string>("Type") ?? "";
|
Type = JSON.Value<string>("Type") ?? "";
|
||||||
TypeLocalised = JSON.Value<string>("Type_Localised") ?? "";
|
TypeLocalised = JSON.Value<string>("Type_Localised") ?? "";
|
||||||
Count = JSON.Value<int?>("Count") ?? 0;
|
Count = JSON.Value<long?>("Count") ?? 0;
|
||||||
BuyPrice = JSON.Value<int?>("BuyPrice") ?? 0;
|
BuyPrice = JSON.Value<long?>("BuyPrice") ?? 0;
|
||||||
TotalCost = JSON.Value<int?>("TotalCost") ?? 0;
|
TotalCost = JSON.Value<long?>("TotalCost") ?? 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user