edjournal/MarketBuyEntry.cs

24 lines
766 B
C#
Raw Permalink Normal View History

2022-01-12 16:19:26 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EDJournal {
public class MarketBuyEntry : Entry {
public string Type { get; set; }
2022-01-26 09:39:17 +01:00
public string TypeLocalised { get; set; }
2022-01-26 09:39:58 +01:00
public long Count { get; set; }
public long BuyPrice { get; set; }
public long TotalCost { get; set; }
2022-01-12 16:19:26 +01:00
protected override void Initialise() {
Type = JSON.Value<string>("Type") ?? "";
2022-01-26 09:39:17 +01:00
TypeLocalised = JSON.Value<string>("Type_Localised") ?? "";
2022-01-26 09:39:58 +01:00
Count = JSON.Value<long?>("Count") ?? 0;
BuyPrice = JSON.Value<long?>("BuyPrice") ?? 0;
TotalCost = JSON.Value<long?>("TotalCost") ?? 0;
2022-01-12 16:19:26 +01:00
}
}
}