summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/LogParsing/Models
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-24 18:41:22 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-24 18:41:32 -0500
commit781074473a0f56488732b5dcb4c19f319f4da003 (patch)
tree3a0b9246cb02e8d053bbb138981ff9a93d690616 /src/SMAPI.Web/Framework/LogParsing/Models
parent4baad0ec8d568217aa2708afc15ba9672b0a2daf (diff)
parentbbb33c96f1cf698eee1dd398526d9ea853c2fb2f (diff)
downloadSMAPI-781074473a0f56488732b5dcb4c19f319f4da003.tar.gz
SMAPI-781074473a0f56488732b5dcb4c19f319f4da003.tar.bz2
SMAPI-781074473a0f56488732b5dcb4c19f319f4da003.zip
Merge pull request #619 from danvolchek/parser_update_alerts
[Log Parser] Update info table in new suggested fixes section
Diffstat (limited to 'src/SMAPI.Web/Framework/LogParsing/Models')
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs (renamed from src/SMAPI.Web/Framework/LogParsing/Models/ModInfo.cs)12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/ModInfo.cs b/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
index 8c84ab38..067e4df4 100644
--- a/src/SMAPI.Web/Framework/LogParsing/Models/ModInfo.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
@@ -12,6 +12,12 @@ namespace StardewModdingAPI.Web.Framework.LogParsing.Models
/// <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; }
@@ -23,5 +29,11 @@ namespace StardewModdingAPI.Web.Framework.LogParsing.Models
/// <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;
}
}