summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Framework/ConfigModels
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 21:49:05 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 21:49:05 -0400
commitecdbefffd9c0acbbecd8178d7d2ac285715b5e7f (patch)
tree205c0638ef13ebf2109563f41f925306ed8dc9b6 /src/StardewModdingAPI.Web/Framework/ConfigModels
parentba5cc149e265d3f14246db23b09c8feb5f9c0d3a (diff)
downloadSMAPI-ecdbefffd9c0acbbecd8178d7d2ac285715b5e7f.tar.gz
SMAPI-ecdbefffd9c0acbbecd8178d7d2ac285715b5e7f.tar.bz2
SMAPI-ecdbefffd9c0acbbecd8178d7d2ac285715b5e7f.zip
move hardcoded values into config (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Framework/ConfigModels')
-rw-r--r--src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs b/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
new file mode 100644
index 00000000..c8763800
--- /dev/null
+++ b/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
@@ -0,0 +1,21 @@
+namespace StardewModdingAPI.Web.Framework.ConfigModels
+{
+ /// <summary>The config settings for mod update checks.</summary>
+ public class ModUpdateCheckConfig
+ {
+ /// <summary>The number of minutes update checks should be cached before refetching them.</summary>
+ public int CacheMinutes { get; set; }
+
+ /// <summary>The repository key for Nexus Mods.</summary>
+ public string NexusKey { get; set; }
+
+ /// <summary>The user agent for the Nexus Mods API client.</summary>
+ public string NexusUserAgent { get; set; }
+
+ /// <summary>The base URL for the Nexus Mods API.</summary>
+ public string NexusBaseUrl { get; set; }
+
+ /// <summary>The URL for a Nexus Mods API query excluding the <see cref="NexusBaseUrl"/>, where {0} is the mod ID.</summary>
+ public string NexusModUrlFormat { get; set; }
+ }
+}