From a23261106ea454ab2e264007f27ca11ddbb7e44b Mon Sep 17 00:00:00 2001
From: danvolchek <volchek2@illinois.edu>
Date: Sun, 17 Feb 2019 20:39:36 -0600
Subject: add update info in suggested fixes section

---
 .../Framework/LogParsing/Models/LogModInfo.cs      | 39 ++++++++++++++++++++++
 .../Framework/LogParsing/Models/ModInfo.cs         | 27 ---------------
 2 files changed, 39 insertions(+), 27 deletions(-)
 create mode 100644 src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
 delete mode 100644 src/SMAPI.Web/Framework/LogParsing/Models/ModInfo.cs

(limited to 'src/SMAPI.Web/Framework/LogParsing/Models')

diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs b/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
new file mode 100644
index 00000000..067e4df4
--- /dev/null
+++ b/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
@@ -0,0 +1,39 @@
+namespace StardewModdingAPI.Web.Framework.LogParsing.Models
+{
+    /// <summary>Metadata about a mod or content pack in the log.</summary>
+    public class LogModInfo
+    {
+        /*********
+        ** Accessors
+        *********/
+        /// <summary>The mod name.</summary>
+        public string Name { get; set; }
+
+        /// <summary>The mod author.</summary>
+        public string Author { get; set; }
+
+        /// <summary>The update version.</summary>
+        public string UpdateVersion { get; set; }
+
+        /// <summary>The update link.</summary>
+        public string UpdateLink { get; set; }
+
+        /// <summary>The mod version.</summary>
+        public string Version { get; set; }
+
+        /// <summary>The mod description.</summary>
+        public string Description { get; set; }
+
+        /// <summary>The name of the mod for which this is a content pack (if applicable).</summary>
+        public string ContentPackFor { get; set; }
+
+        /// <summary>The number of errors logged by this mod.</summary>
+        public int Errors { get; set; }
+
+        /// <summary>Whether the mod was loaded into the game.</summary>
+        public bool Loaded { get; set; }
+
+        /// <summary>Whether the mod has an update available.</summary>
+        public bool HasUpdate => this.UpdateVersion != null && this.Version != this.UpdateVersion;
+    }
+}
diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/ModInfo.cs b/src/SMAPI.Web/Framework/LogParsing/Models/ModInfo.cs
deleted file mode 100644
index 8c84ab38..00000000
--- a/src/SMAPI.Web/Framework/LogParsing/Models/ModInfo.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-namespace StardewModdingAPI.Web.Framework.LogParsing.Models
-{
-    /// <summary>Metadata about a mod or content pack in the log.</summary>
-    public class LogModInfo
-    {
-        /*********
-        ** Accessors
-        *********/
-        /// <summary>The mod name.</summary>
-        public string Name { get; set; }
-
-        /// <summary>The mod author.</summary>
-        public string Author { get; set; }
-
-        /// <summary>The mod version.</summary>
-        public string Version { get; set; }
-
-        /// <summary>The mod description.</summary>
-        public string Description { get; set; }
-
-        /// <summary>The name of the mod for which this is a content pack (if applicable).</summary>
-        public string ContentPackFor { get; set; }
-
-        /// <summary>The number of errors logged by this mod.</summary>
-        public int Errors { get; set; }
-    }
-}
-- 
cgit