edjournal/SearchAndRescueEntry.cs

20 lines
642 B
C#
Raw Normal View History

2022-02-09 08:56:25 +01:00
namespace EDJournal {
public class SearchAndRescueEntry : Entry {
public long MarketID { get; set; }
public string Name { get; set; }
public string NameLocalised { get; set; }
public long Count { get; set; }
public long Reward { get; set; }
protected override void Initialise() {
MarketID = JSON.Value<long?>("MarketID") ?? 0;
Name = JSON.Value<string>("Name") ?? "";
NameLocalised = JSON.Value<string>("Name_Localised");
Count = JSON.Value<long?>("Count") ?? 0;
Reward = JSON.Value<long?>("Reward") ?? 0;
}
}
}