diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-02-24 16:51:37 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-02-24 16:51:37 -0500 |
commit | d7696912e007a2b455a2fd5e1974924d2efe83b3 (patch) | |
tree | f3bcd5f75e8028ff2386321287899ce491f892ea /src/SMAPI.Web/ViewModels/LogParserModel.cs | |
parent | 68528f7decadccb4c5ed62f3fff10aeff22dcd43 (diff) | |
download | SMAPI-d7696912e007a2b455a2fd5e1974924d2efe83b3.tar.gz SMAPI-d7696912e007a2b455a2fd5e1974924d2efe83b3.tar.bz2 SMAPI-d7696912e007a2b455a2fd5e1974924d2efe83b3.zip |
reimplement log parser with serverside parsing and vue.js frontend
Diffstat (limited to 'src/SMAPI.Web/ViewModels/LogParserModel.cs')
-rw-r--r-- | src/SMAPI.Web/ViewModels/LogParserModel.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/SMAPI.Web/ViewModels/LogParserModel.cs b/src/SMAPI.Web/ViewModels/LogParserModel.cs index b5b3b14c..8c026536 100644 --- a/src/SMAPI.Web/ViewModels/LogParserModel.cs +++ b/src/SMAPI.Web/ViewModels/LogParserModel.cs @@ -1,3 +1,5 @@ +using StardewModdingAPI.Web.Framework.LogParsing.Models; + namespace StardewModdingAPI.Web.ViewModels { /// <summary>The view model for the log parser page.</summary> @@ -12,6 +14,9 @@ namespace StardewModdingAPI.Web.ViewModels /// <summary>The paste ID.</summary> public string PasteID { get; set; } + /// <summary>The parsed log info.</summary> + public ParsedLog ParsedLog { get; set; } + /********* ** Public methods @@ -22,10 +27,12 @@ namespace StardewModdingAPI.Web.ViewModels /// <summary>Construct an instance.</summary> /// <param name="sectionUrl">The root URL for the log parser controller.</param> /// <param name="pasteID">The paste ID.</param> - public LogParserModel(string sectionUrl, string pasteID) + /// <param name="parsedLog">The parsed log info.</param> + public LogParserModel(string sectionUrl, string pasteID, ParsedLog parsedLog) { this.SectionUrl = sectionUrl; this.PasteID = pasteID; + this.ParsedLog = parsedLog; } } } |