summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/LogParsing/Models
diff options
context:
space:
mode:
authordanvolchek <volchek2@illinois.edu>2019-03-09 18:20:02 -0600
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-03-10 01:40:58 -0500
commit6cd7e11c1020c40f223dee70a7dd7b2c66296918 (patch)
treee70efb856ec211faf338c347fea11f11c36ab37e /src/SMAPI.Web/Framework/LogParsing/Models
parent810be1fbc71c7808dbdfc5210eb8816d0ad21110 (diff)
downloadSMAPI-6cd7e11c1020c40f223dee70a7dd7b2c66296918.tar.gz
SMAPI-6cd7e11c1020c40f223dee70a7dd7b2c66296918.tar.bz2
SMAPI-6cd7e11c1020c40f223dee70a7dd7b2c66296918.zip
add log sections implementation
Diffstat (limited to 'src/SMAPI.Web/Framework/LogParsing/Models')
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/Models/LogMessage.cs6
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/Models/LogSection.cs15
2 files changed, 21 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/LogMessage.cs b/src/SMAPI.Web/Framework/LogParsing/Models/LogMessage.cs
index baeac83c..ecca0b5b 100644
--- a/src/SMAPI.Web/Framework/LogParsing/Models/LogMessage.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/Models/LogMessage.cs
@@ -20,5 +20,11 @@ namespace StardewModdingAPI.Web.Framework.LogParsing.Models
/// <summary>The number of times this message was repeated consecutively.</summary>
public int Repeated { get; set; }
+
+ /// <summary>The section that this log message belongs too.</summary>
+ public LogSection? Section { get; set; }
+
+ /// <summary>Whether this message is the first one of it's section.</summary>
+ public bool IsStartOfSection { get; set; }
}
}
diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/LogSection.cs b/src/SMAPI.Web/Framework/LogParsing/Models/LogSection.cs
new file mode 100644
index 00000000..218d546c
--- /dev/null
+++ b/src/SMAPI.Web/Framework/LogParsing/Models/LogSection.cs
@@ -0,0 +1,15 @@
+namespace StardewModdingAPI.Web.Framework.LogParsing.Models
+{
+ /// <summary>The different sections of a log.</summary>
+ public enum LogSection
+ {
+ /// <summary>The list of mods the user has.</summary>
+ ModsList,
+
+ /// <summary>The list of content packs the user has.</summary>
+ ContentPackList,
+
+ /// <summary>The list of mod updates SMAPI has found.</summary>
+ ModUpdateList
+ }
+}