summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Toolkit
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-06-30 01:39:01 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-13 16:00:23 -0400
commit6eb36333b7b7568a3fa94f74f98722c41a6e54f3 (patch)
treeecf2035ff425772da90828dede954719539c6bd1 /src/StardewModdingAPI.Toolkit
parentaa154319669a130c2b419540aaf5e9a5baa6db97 (diff)
downloadSMAPI-6eb36333b7b7568a3fa94f74f98722c41a6e54f3.tar.gz
SMAPI-6eb36333b7b7568a3fa94f74f98722c41a6e54f3.tar.bz2
SMAPI-6eb36333b7b7568a3fa94f74f98722c41a6e54f3.zip
add 'broke in' API fields (#638)
Diffstat (limited to 'src/StardewModdingAPI.Toolkit')
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs
index f8272ef7..989c18b0 100644
--- a/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs
+++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs
@@ -51,6 +51,9 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
/// <summary>The human-readable summary of the compatibility status or workaround, without HTML formatitng.</summary>
public string CompatibilitySummary { get; set; }
+ /// <summary>The game or SMAPI version which broke this mod, if applicable.</summary>
+ public string BrokeIn { get; set; }
+
/****
** Beta compatibility
@@ -62,6 +65,9 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
/// <summary>The human-readable summary of the compatibility status or workaround for the Stardew Valley beta (if any), without HTML formatitng.</summary>
public string BetaCompatibilitySummary { get; set; }
+ /// <summary>The beta game or SMAPI version which broke this mod, if applicable.</summary>
+ public string BetaBrokeIn { get; set; }
+
/*********
** Public methods
@@ -88,9 +94,11 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
this.CompatibilityStatus = wiki.Compatibility.Status;
this.CompatibilitySummary = wiki.Compatibility.Summary;
+ this.BrokeIn = wiki.Compatibility.BrokeIn;
this.BetaCompatibilityStatus = wiki.BetaCompatibility?.Status;
this.BetaCompatibilitySummary = wiki.BetaCompatibility?.Summary;
+ this.BetaBrokeIn = wiki.BetaCompatibility?.BrokeIn;
}
// internal DB data