diff --git a/.gitignore b/.gitignore index b62b3b7..8837712 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /bin/Release /bin/Debug /packages/Newtonsoft.Json.13.0.1 +/.vs/edjournal/v17/.suo diff --git a/CommanderEntry.cs b/CommanderEntry.cs new file mode 100644 index 0000000..bb04703 --- /dev/null +++ b/CommanderEntry.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EDJournal { + public class CommanderEntry : Entry { + public string Name { get; set; } + public string FID { get; set; } + protected override void Initialise() { + Name = JSON.Value("Name") ?? ""; + FID = JSON.Value("FID") ?? ""; + } + } +} diff --git a/Entry.cs b/Entry.cs index 3df79f1..16cff86 100644 --- a/Entry.cs +++ b/Entry.cs @@ -13,6 +13,7 @@ namespace EDJournal { public class Entry { private static readonly Dictionary classes = new Dictionary { { Events.Bounty, typeof(BountyEntry) }, + { Events.Commander, typeof(CommanderEntry) }, { Events.CommitCrime, typeof(CommitCrimeEntry) }, { Events.Died, typeof(DiedEntry) }, { Events.Docked, typeof(DockedEntry) }, diff --git a/Events.cs b/Events.cs index 58a0135..39fb7f9 100644 --- a/Events.cs +++ b/Events.cs @@ -1,6 +1,7 @@ namespace EDJournal { public class Events { public static readonly string Bounty = "Bounty"; + public static readonly string Commander = "Commander"; public static readonly string CommitCrime = "CommitCrime"; public static readonly string Died = "Died"; public static readonly string Docked = "Docked"; diff --git a/edjournal.csproj b/edjournal.csproj index b7b476b..38d7acd 100644 --- a/edjournal.csproj +++ b/edjournal.csproj @@ -42,6 +42,7 @@ +