From 9918c7d559ec6eddb01e8b4c1f3e7d1c1a5938aa Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 18 Sep 2024 21:33:05 +0200 Subject: [PATCH] extend Commander entry with full name CMDR + Name --- EDPlayerJournal/Entries/CommanderEntry.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/EDPlayerJournal/Entries/CommanderEntry.cs b/EDPlayerJournal/Entries/CommanderEntry.cs index 8ab4c11..ddf3876 100644 --- a/EDPlayerJournal/Entries/CommanderEntry.cs +++ b/EDPlayerJournal/Entries/CommanderEntry.cs @@ -8,4 +8,13 @@ public class CommanderEntry : Entry { Name = JSON.Value("Name") ?? ""; FID = JSON.Value("FID") ?? ""; } + + public string FullName { + get { + if (string.IsNullOrEmpty(Name)) { + return string.Empty; + } + return "CMDR " + Name; + } + } }