2022-11-24 16:10:27 +01:00
|
|
|
|
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-24 16:10:27 +01:00
|
|
|
|
|
2022-11-01 18:01:28 +01:00
|
|
|
|
protected override void Initialise() {
|
|
|
|
|
Name = JSON.Value<string>("Name") ?? "";
|
|
|
|
|
FID = JSON.Value<string>("FID") ?? "";
|
|
|
|
|
}
|
2024-09-18 21:33:05 +02:00
|
|
|
|
|
|
|
|
|
public string FullName {
|
|
|
|
|
get {
|
|
|
|
|
if (string.IsNullOrEmpty(Name)) {
|
|
|
|
|
return string.Empty;
|
|
|
|
|
}
|
|
|
|
|
return "CMDR " + Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-11-01 18:01:28 +01:00
|
|
|
|
}
|