diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-11-07 13:51:45 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-11-07 13:51:45 -0500 |
commit | 8b09a2776d9c0faf96fa90c923952033ce659477 (patch) | |
tree | 973b9da5f3205760eb7804ba4f2aa2ad07708b8b /src/SMAPI.Web/Framework/Clients/CurseForge/CurseForgeMod.cs | |
parent | fed71886a96dc85a0e93b36ab3016b82ba0cbe9f (diff) | |
download | SMAPI-8b09a2776d9c0faf96fa90c923952033ce659477.tar.gz SMAPI-8b09a2776d9c0faf96fa90c923952033ce659477.tar.bz2 SMAPI-8b09a2776d9c0faf96fa90c923952033ce659477.zip |
add support for CurseForge update keys (#605)
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/CurseForge/CurseForgeMod.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/CurseForge/CurseForgeMod.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/CurseForge/CurseForgeMod.cs b/src/SMAPI.Web/Framework/Clients/CurseForge/CurseForgeMod.cs new file mode 100644 index 00000000..e5bb8cf1 --- /dev/null +++ b/src/SMAPI.Web/Framework/Clients/CurseForge/CurseForgeMod.cs @@ -0,0 +1,23 @@ +using Newtonsoft.Json; + +namespace StardewModdingAPI.Web.Framework.Clients.CurseForge +{ + /// <summary>Mod metadata from the CurseForge API.</summary> + internal class CurseForgeMod + { + /********* + ** Accessors + *********/ + /// <summary>The mod name.</summary> + public string Name { get; set; } + + /// <summary>The latest file version.</summary> + public string LatestVersion { get; set; } + + /// <summary>The mod's web URL.</summary> + public string Url { get; set; } + + /// <summary>A user-friendly error which indicates why fetching the mod info failed (if applicable).</summary> + public string Error { get; set; } + } +} |