diff options
| author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-15 00:18:51 -0500 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-15 00:18:51 -0500 |
| commit | 5f620e14fa331b0721bd4044011363477dc79ef5 (patch) | |
| tree | 374d13dee743a8406253175cc171ef4f81356538 /src/SMAPI.Web/ViewModels/ModModel.cs | |
| parent | 567c216161f00767b5dcdb0adf40a3bee91d18d0 (diff) | |
| download | SMAPI-5f620e14fa331b0721bd4044011363477dc79ef5.tar.gz SMAPI-5f620e14fa331b0721bd4044011363477dc79ef5.tar.bz2 SMAPI-5f620e14fa331b0721bd4044011363477dc79ef5.zip | |
add SMAPI 3.0 readiness to API data (#606)
Diffstat (limited to 'src/SMAPI.Web/ViewModels/ModModel.cs')
| -rw-r--r-- | src/SMAPI.Web/ViewModels/ModModel.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI.Web/ViewModels/ModModel.cs b/src/SMAPI.Web/ViewModels/ModModel.cs index 5c1840fc..f1a52f98 100644 --- a/src/SMAPI.Web/ViewModels/ModModel.cs +++ b/src/SMAPI.Web/ViewModels/ModModel.cs @@ -31,6 +31,12 @@ namespace StardewModdingAPI.Web.ViewModels /// <summary>The compatibility status for the beta version of the game.</summary> public ModCompatibilityModel BetaCompatibility { get; set; } + /// <summary>Whether the mod is ready for the upcoming SMAPI 3.0.</summary> + public string Smapi3Status { get; set; } + + /// <summary>A URL related to the <see cref="Smapi3Status"/>.</summary> + public string Smapi3Url { get; set; } + /// <summary>Links to the available mod pages.</summary> public ModLinkModel[] ModPages { get; set; } @@ -59,6 +65,8 @@ namespace StardewModdingAPI.Web.ViewModels this.SourceUrl = this.GetSourceUrl(entry); this.Compatibility = new ModCompatibilityModel(entry.Compatibility); this.BetaCompatibility = entry.BetaCompatibility != null ? new ModCompatibilityModel(entry.BetaCompatibility) : null; + this.Smapi3Status = entry.Smapi3Status.ToString().ToLower(); + this.Smapi3Url = entry.Smapi3Url; this.ModPages = this.GetModPageUrls(entry).ToArray(); this.Warnings = entry.Warnings; this.Slug = entry.Anchor; |
