EDBGS/EDPlayerJournal/Entries/CommanderEntry.cs

21 lines
492 B
C#
Raw Permalink Normal View History

namespace EDPlayerJournal.Entries;
2022-11-01 18:01:28 +01:00
public class CommanderEntry : Entry {
public string? Name { get; set; }
public string? FID { get; set; }
2022-11-01 18:01:28 +01:00
protected override void Initialise() {
Name = JSON.Value<string>("Name") ?? "";
FID = JSON.Value<string>("FID") ?? "";
}
public string FullName {
get {
if (string.IsNullOrEmpty(Name)) {
return string.Empty;
}
return "CMDR " + Name;
}
}
2022-11-01 18:01:28 +01:00
}