summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 22:42:04 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 22:42:04 -0400
commit0d6f6a9acef175fd9ea0df6790111d8d58d7f368 (patch)
tree28cb29eb86b8189a5f87ba2a2f05ce988ccded9f /src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
parent71d85a0c22a9295a08acdf433ef67d8b1b47e57b (diff)
downloadSMAPI-0d6f6a9acef175fd9ea0df6790111d8d58d7f368.tar.gz
SMAPI-0d6f6a9acef175fd9ea0df6790111d8d58d7f368.tar.bz2
SMAPI-0d6f6a9acef175fd9ea0df6790111d8d58d7f368.zip
add GitHub update check support (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs')
-rw-r--r--src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs b/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
index c8763800..4dbad506 100644
--- a/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
+++ b/src/StardewModdingAPI.Web/Framework/ConfigModels/ModUpdateCheckConfig.cs
@@ -3,9 +3,36 @@ namespace StardewModdingAPI.Web.Framework.ConfigModels
/// <summary>The config settings for mod update checks.</summary>
public class ModUpdateCheckConfig
{
+ /*********
+ ** Accessors
+ *********/
+ /****
+ ** General
+ ****/
/// <summary>The number of minutes update checks should be cached before refetching them.</summary>
public int CacheMinutes { get; set; }
+ /****
+ ** GitHub
+ ****/
+ /// <summary>The repository key for Nexus Mods.</summary>
+ public string GitHubKey { get; set; }
+
+ /// <summary>The user agent for the GitHub API client.</summary>
+ public string GitHubUserAgent { get; set; }
+
+ /// <summary>The base URL for the GitHub API.</summary>
+ public string GitHubBaseUrl { get; set; }
+
+ /// <summary>The URL for a GitHub API latest-release query excluding the <see cref="GitHubBaseUrl"/>, where {0} is the organisation and project name.</summary>
+ public string GitHubReleaseUrlFormat { get; set; }
+
+ /// <summary>The Accept header value expected by the GitHub API.</summary>
+ public string GitHubAcceptHeader { get; set; }
+
+ /****
+ ** Nexus Mods
+ ****/
/// <summary>The repository key for Nexus Mods.</summary>
public string NexusKey { get; set; }