edjournal/FactionKillBondEntry.cs

20 lines
598 B
C#
Raw Normal View History

2021-09-28 14:14:37 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EDJournal {
public class FactionKillBondEntry : Entry {
public int Reward { get; set; }
public string AwardingFaction { get; set; }
public string VictimFaction { get; set; }
protected override void Initialise() {
Reward = JSON.Value<int?>("Reward") ?? 0;
AwardingFaction = JSON.Value<string>("AwardingFaction") ?? "";
VictimFaction = JSON.Value<string>("VictimFaction") ?? "";
}
}
}