From 5f7eff3466575896e075ebb6ab1a0b24576adac0 Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Wed, 1 Jul 2020 23:07:31 +0100 Subject: [PATCH] Re-added Game ID to GameEntryModel. - Useful for search query lookups. --- DevConsole/Program.cs | 9 +-------- FireLance/Models/GameEntryModel.cs | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/DevConsole/Program.cs b/DevConsole/Program.cs index 74c0ecd..da65aa4 100644 --- a/DevConsole/Program.cs +++ b/DevConsole/Program.cs @@ -166,6 +166,7 @@ namespace DevConsole { foreach (var game in gameEntries) { + Console.WriteLine($"ID: {game.ID}"); Console.WriteLine($"GameName: {game.GameName}"); Console.WriteLine($"BackupWarning: {game.BackupWarning}"); Console.WriteLine($"RestoreWarning: {game.RestoreWarning}"); @@ -173,14 +174,6 @@ namespace DevConsole } } - private static void PrintGameEntry(GameEntryModel gameEntry) - { - Console.WriteLine($"GameName: {gameEntry.GameName}"); - Console.WriteLine($"BackupWarning: {gameEntry.BackupWarning}"); - Console.WriteLine($"RestoreWarning: {gameEntry.RestoreWarning}"); - Console.WriteLine($"LastModified: {gameEntry.LastModified}\n"); - } - private static void PrintDirectories(List directoryEntries) { foreach (var directory in directoryEntries) diff --git a/FireLance/Models/GameEntryModel.cs b/FireLance/Models/GameEntryModel.cs index 5e76332..72eea82 100644 --- a/FireLance/Models/GameEntryModel.cs +++ b/FireLance/Models/GameEntryModel.cs @@ -2,6 +2,7 @@ { public class GameEntryModel { + public string ID { get; set; } public string GameName { get; set; } public string BackupWarning { get; set; } public string RestoreWarning { get; set; }