diff --git a/Entry.cs b/Entry.cs index f984a6b..3df79f1 100644 --- a/Entry.cs +++ b/Entry.cs @@ -29,6 +29,7 @@ namespace EDJournal { { Events.MissionRedirected, typeof(MissionRedirectedEntry) }, { Events.MultiSellExplorationData, typeof(MultiSellExplorationDataEntry) }, { Events.RedeemVoucher, typeof(RedeemVoucherEntry) }, + { Events.SearchAndRescue, typeof(SearchAndRescueEntry) }, { Events.SellExplorationData, typeof(SellExplorationDataEntry) }, { Events.SellMicroResources, typeof(SellMicroResourcesEntry) }, { Events.SellOrganicData, typeof(SellOrganicDataEntry) }, diff --git a/Events.cs b/Events.cs index b0e3f26..58a0135 100644 --- a/Events.cs +++ b/Events.cs @@ -18,6 +18,7 @@ public static readonly string MissionRedirected = "MissionRedirected"; public static readonly string MultiSellExplorationData = "MultiSellExplorationData"; public static readonly string RedeemVoucher = "RedeemVoucher"; + public static readonly string SearchAndRescue = "SearchAndRescue"; public static readonly string SellExplorationData = "SellExplorationData"; public static readonly string SellMicroResources = "SellMicroResources"; public static readonly string SellOrganicData = "SellOrganicData"; diff --git a/SearchAndRescueEntry.cs b/SearchAndRescueEntry.cs new file mode 100644 index 0000000..c1d5c3d --- /dev/null +++ b/SearchAndRescueEntry.cs @@ -0,0 +1,19 @@ +namespace EDJournal { + public class SearchAndRescueEntry : Entry { + public long MarketID { get; set; } + public string Name { get; set; } + public string NameLocalised { get; set; } + public long Count { get; set; } + public long Reward { get; set; } + + protected override void Initialise() { + MarketID = JSON.Value("MarketID") ?? 0; + Name = JSON.Value("Name") ?? ""; + NameLocalised = JSON.Value("Name_Localised"); + Count = JSON.Value("Count") ?? 0; + Reward = JSON.Value("Reward") ?? 0; + } + + + } +} diff --git a/edjournal.csproj b/edjournal.csproj index b8c361c..eb9f46f 100644 --- a/edjournal.csproj +++ b/edjournal.csproj @@ -69,6 +69,7 @@ +