remove 'SMAPI 3.0 ready' API fields (#638)

This commit is contained in:
Jesse Plamondon-Willard 2019-06-30 01:38:45 -04:00
parent 01221ea66f
commit aa15431966
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
5 changed files with 0 additions and 49 deletions

View File

@ -31,12 +31,6 @@ namespace StardewModdingAPI.Web.ViewModels
/// <summary>The compatibility status for the beta version of the game.</summary> /// <summary>The compatibility status for the beta version of the game.</summary>
public ModCompatibilityModel BetaCompatibility { get; set; } 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> /// <summary>Links to the available mod pages.</summary>
public ModLinkModel[] ModPages { get; set; } public ModLinkModel[] ModPages { get; set; }
@ -65,8 +59,6 @@ namespace StardewModdingAPI.Web.ViewModels
this.SourceUrl = this.GetSourceUrl(entry); this.SourceUrl = this.GetSourceUrl(entry);
this.Compatibility = new ModCompatibilityModel(entry.Compatibility); this.Compatibility = new ModCompatibilityModel(entry.Compatibility);
this.BetaCompatibility = entry.BetaCompatibility != null ? new ModCompatibilityModel(entry.BetaCompatibility) : null; 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.ModPages = this.GetModPageUrls(entry).ToArray();
this.Warnings = entry.Warnings; this.Warnings = entry.Warnings;
this.Slug = entry.Anchor; this.Slug = entry.Anchor;

View File

@ -40,14 +40,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
/// <summary>The custom mod page URL (if applicable).</summary> /// <summary>The custom mod page URL (if applicable).</summary>
public string CustomUrl { get; set; } public string CustomUrl { get; set; }
/****
** SMAPI 3.0 readiness
****/
/// <summary>Whether the mod is ready for the upcoming SMAPI 3.0.</summary>
public WikiSmapi3Status Smapi3Status { get; set; }
/// <summary>A URL related to the <see cref="Smapi3Status"/>.</summary>
public string Smapi3Url { get; set; }
/**** /****
** Stable compatibility ** Stable compatibility
@ -94,9 +86,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
this.CustomSourceUrl = wiki.CustomSourceUrl; this.CustomSourceUrl = wiki.CustomSourceUrl;
this.CustomUrl = wiki.CustomUrl; this.CustomUrl = wiki.CustomUrl;
this.Smapi3Status = wiki.Smapi3Status;
this.Smapi3Url = wiki.Smapi3Url;
this.CompatibilityStatus = wiki.Compatibility.Status; this.CompatibilityStatus = wiki.Compatibility.Status;
this.CompatibilitySummary = wiki.Compatibility.Summary; this.CompatibilitySummary = wiki.Compatibility.Summary;

View File

@ -127,10 +127,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
} }
} }
// parse SMAPI 3.0 readiness status
WikiSmapi3Status smapi3Status = this.GetAttributeAsEnum<WikiSmapi3Status>(node, "data-smapi-3-status") ?? WikiSmapi3Status.Unknown;
string smapi3Url = this.GetAttribute(node, "data-smapi-3-url");
// yield model // yield model
yield return new WikiModEntry yield return new WikiModEntry
{ {
@ -146,8 +142,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
ContentPackFor = contentPackFor, ContentPackFor = contentPackFor,
Compatibility = compatibility, Compatibility = compatibility,
BetaCompatibility = betaCompatibility, BetaCompatibility = betaCompatibility,
Smapi3Status = smapi3Status,
Smapi3Url = smapi3Url,
Warnings = warnings, Warnings = warnings,
Anchor = anchor Anchor = anchor
}; };

View File

@ -42,12 +42,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
/// <summary>The mod's compatibility with the latest beta version of the game (if any).</summary> /// <summary>The mod's compatibility with the latest beta version of the game (if any).</summary>
public WikiCompatibilityInfo BetaCompatibility { get; set; } public WikiCompatibilityInfo BetaCompatibility { get; set; }
/// <summary>Whether the mod is ready for the upcoming SMAPI 3.0.</summary>
public WikiSmapi3Status Smapi3Status { get; set; }
/// <summary>A URL related to the <see cref="Smapi3Status"/>.</summary>
public string Smapi3Url { get; set; }
/// <summary>Whether a Stardew Valley or SMAPI beta which affects mod compatibility is in progress. If this is true, <see cref="BetaCompatibility"/> should be used for beta versions of SMAPI instead of <see cref="Compatibility"/>.</summary> /// <summary>Whether a Stardew Valley or SMAPI beta which affects mod compatibility is in progress. If this is true, <see cref="BetaCompatibility"/> should be used for beta versions of SMAPI instead of <see cref="Compatibility"/>.</summary>
public bool HasBetaInfo => this.BetaCompatibility != null; public bool HasBetaInfo => this.BetaCompatibility != null;

View File

@ -1,18 +0,0 @@
namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
{
/// <summary>Whether a mod is ready for the upcoming SMAPI 3.0.</summary>
public enum WikiSmapi3Status
{
/// <summary>The mod's compatibility status is unknown.</summary>
Unknown = 0,
/// <summary>The mod is compatible with the upcoming SMAPI 3.0.</summary>
Ok = 1,
/// <summary>The mod will break in SMAPI 3.0.</summary>
Broken = 2,
/// <summary>The mod has a pull request submitted for SMAPI 3.0 compatibility.</summary>
Soon = 3
}
}