From a23261106ea454ab2e264007f27ca11ddbb7e44b Mon Sep 17 00:00:00 2001 From: danvolchek Date: Sun, 17 Feb 2019 20:39:36 -0600 Subject: add update info in suggested fixes section --- .../Framework/LogParsing/Models/LogModInfo.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs (limited to 'src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs') 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 +{ + /// Metadata about a mod or content pack in the log. + public class LogModInfo + { + /********* + ** Accessors + *********/ + /// The mod name. + public string Name { get; set; } + + /// The mod author. + public string Author { get; set; } + + /// The update version. + public string UpdateVersion { get; set; } + + /// The update link. + public string UpdateLink { get; set; } + + /// The mod version. + public string Version { get; set; } + + /// The mod description. + public string Description { get; set; } + + /// The name of the mod for which this is a content pack (if applicable). + public string ContentPackFor { get; set; } + + /// The number of errors logged by this mod. + public int Errors { get; set; } + + /// Whether the mod was loaded into the game. + public bool Loaded { get; set; } + + /// Whether the mod has an update available. + public bool HasUpdate => this.UpdateVersion != null && this.Version != this.UpdateVersion; + } +} -- cgit