diff options
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/GenericModPage.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/GenericModPage.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/GenericModPage.cs b/src/SMAPI.Web/Framework/Clients/GenericModPage.cs index 5353c7e1..4c66e1a0 100644 --- a/src/SMAPI.Web/Framework/Clients/GenericModPage.cs +++ b/src/SMAPI.Web/Framework/Clients/GenericModPage.cs @@ -40,6 +40,8 @@ namespace StardewModdingAPI.Web.Framework.Clients [MemberNotNullWhen(true, nameof(IModPage.Name), nameof(IModPage.Url))] public bool IsValid => this.Status == RemoteModStatus.Ok; + /// <summary>Whether to use strict subkey matching or not.</summary> + public bool IsSubkeyStrict { get; set; } = false; /********* ** Public methods @@ -79,5 +81,19 @@ namespace StardewModdingAPI.Web.Framework.Clients return this; } + + /// <summary>Returns the mod page name.</summary> + /// <param name="subkey">ignored</param> + /// <returns>The mod page name.</returns> + public virtual string? GetName(string? subkey) { + return this.Name; + } + + /// <summary>Returns the mod page URL.</summary> + /// <param name="subkey">ignored</param> + /// <returns>The mod page URL.</returns> + public virtual string? GetUrl(string? subkey) { + return this.Url; + } } } |