From aa154319669a130c2b419540aaf5e9a5baa6db97 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 30 Jun 2019 01:38:45 -0400 Subject: [PATCH] remove 'SMAPI 3.0 ready' API fields (#638) --- src/SMAPI.Web/ViewModels/ModModel.cs | 8 -------- .../Clients/WebApi/ModExtendedMetadataModel.cs | 11 ----------- .../Framework/Clients/Wiki/WikiClient.cs | 6 ------ .../Framework/Clients/Wiki/WikiModEntry.cs | 6 ------ .../Framework/Clients/Wiki/WikiSmapi3Status.cs | 18 ------------------ 5 files changed, 49 deletions(-) delete mode 100644 src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs diff --git a/src/SMAPI.Web/ViewModels/ModModel.cs b/src/SMAPI.Web/ViewModels/ModModel.cs index ae81acf5..8668f67b 100644 --- a/src/SMAPI.Web/ViewModels/ModModel.cs +++ b/src/SMAPI.Web/ViewModels/ModModel.cs @@ -31,12 +31,6 @@ namespace StardewModdingAPI.Web.ViewModels /// The compatibility status for the beta version of the game. public ModCompatibilityModel BetaCompatibility { get; set; } - /// Whether the mod is ready for the upcoming SMAPI 3.0. - public string Smapi3Status { get; set; } - - /// A URL related to the . - public string Smapi3Url { get; set; } - /// Links to the available mod pages. public ModLinkModel[] ModPages { get; set; } @@ -65,8 +59,6 @@ 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; diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs index 45b46ea6..f8272ef7 100644 --- a/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs +++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs @@ -40,14 +40,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi /// The custom mod page URL (if applicable). public string CustomUrl { get; set; } - /**** - ** SMAPI 3.0 readiness - ****/ - /// Whether the mod is ready for the upcoming SMAPI 3.0. - public WikiSmapi3Status Smapi3Status { get; set; } - - /// A URL related to the . - public string Smapi3Url { get; set; } /**** ** Stable compatibility @@ -94,9 +86,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi this.CustomSourceUrl = wiki.CustomSourceUrl; this.CustomUrl = wiki.CustomUrl; - this.Smapi3Status = wiki.Smapi3Status; - this.Smapi3Url = wiki.Smapi3Url; - this.CompatibilityStatus = wiki.Compatibility.Status; this.CompatibilitySummary = wiki.Compatibility.Summary; diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs index ac279d88..3e9b8ea6 100644 --- a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs +++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs @@ -127,10 +127,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki } } - // parse SMAPI 3.0 readiness status - WikiSmapi3Status smapi3Status = this.GetAttributeAsEnum(node, "data-smapi-3-status") ?? WikiSmapi3Status.Unknown; - string smapi3Url = this.GetAttribute(node, "data-smapi-3-url"); - // yield model yield return new WikiModEntry { @@ -146,8 +142,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki ContentPackFor = contentPackFor, Compatibility = compatibility, BetaCompatibility = betaCompatibility, - Smapi3Status = smapi3Status, - Smapi3Url = smapi3Url, Warnings = warnings, Anchor = anchor }; diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs index 35d43758..cf416cc6 100644 --- a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs +++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs @@ -42,12 +42,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki /// The mod's compatibility with the latest beta version of the game (if any). public WikiCompatibilityInfo BetaCompatibility { get; set; } - /// Whether the mod is ready for the upcoming SMAPI 3.0. - public WikiSmapi3Status Smapi3Status { get; set; } - - /// A URL related to the . - public string Smapi3Url { get; set; } - /// Whether a Stardew Valley or SMAPI beta which affects mod compatibility is in progress. If this is true, should be used for beta versions of SMAPI instead of . public bool HasBetaInfo => this.BetaCompatibility != null; diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs deleted file mode 100644 index 879cfd8a..00000000 --- a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki -{ - /// Whether a mod is ready for the upcoming SMAPI 3.0. - public enum WikiSmapi3Status - { - /// The mod's compatibility status is unknown. - Unknown = 0, - - /// The mod is compatible with the upcoming SMAPI 3.0. - Ok = 1, - - /// The mod will break in SMAPI 3.0. - Broken = 2, - - /// The mod has a pull request submitted for SMAPI 3.0 compatibility. - Soon = 3 - } -}