using System.Reflection;
namespace EDPlayerJournal.Entries {
public class PowerplayEntry : Entry {
///
/// Name of the power
///
public string Power { get; set; } = string.Empty;
///
/// Player rank
///
public int Rank { get; set; } = 0;
///
/// Current merits of the player
///
public long Merits { get; set; } = 0;
///
/// Time pledged (in seconds?)
///
public long TimePledged { get; set; } = 0;
protected override void Initialise() {
Power = JSON.Value("Power") ?? string.Empty;
Rank = JSON.Value("Rank") ?? 0;
Merits = JSON.Value("Merits") ?? 0;
TimePledged = JSON.Value("TimePledged") ?? 0;
}
}
}