diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-24 23:28:07 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-24 23:28:07 -0500 |
commit | 05541c11a72735d79d98cf3ae14d592e70bd8f54 (patch) | |
tree | 79ca6a23fb00a47d6387e7f77c28c7aa80543f97 /src/SMAPI.Web/Framework/Clients/Nexus/INexusClient.cs | |
parent | c3d0ce7245b76d26ea22ceb5430ee526d43170f7 (diff) | |
download | SMAPI-05541c11a72735d79d98cf3ae14d592e70bd8f54.tar.gz SMAPI-05541c11a72735d79d98cf3ae14d592e70bd8f54.tar.bz2 SMAPI-05541c11a72735d79d98cf3ae14d592e70bd8f54.zip |
decouple API clients from mods API (#411)
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/Nexus/INexusClient.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/Nexus/INexusClient.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/Nexus/INexusClient.cs b/src/SMAPI.Web/Framework/Clients/Nexus/INexusClient.cs new file mode 100644 index 00000000..e56e7af4 --- /dev/null +++ b/src/SMAPI.Web/Framework/Clients/Nexus/INexusClient.cs @@ -0,0 +1,17 @@ +using System; +using System.Threading.Tasks; + +namespace StardewModdingAPI.Web.Framework.Clients.Nexus +{ + /// <summary>An HTTP client for fetching mod metadata from Nexus Mods.</summary> + internal interface INexusClient : IDisposable + { + /********* + ** Methods + *********/ + /// <summary>Get metadata about a mod.</summary> + /// <param name="id">The Nexus mod ID.</param> + /// <returns>Returns the mod info if found, else <c>null</c>.</returns> + Task<NexusMod> GetModAsync(uint id); + } +} |