summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/IModSiteClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/IModSiteClient.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/IModSiteClient.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/IModSiteClient.cs b/src/SMAPI.Web/Framework/Clients/IModSiteClient.cs
new file mode 100644
index 00000000..33277711
--- /dev/null
+++ b/src/SMAPI.Web/Framework/Clients/IModSiteClient.cs
@@ -0,0 +1,23 @@
+using System.Threading.Tasks;
+using StardewModdingAPI.Toolkit.Framework.UpdateData;
+
+namespace StardewModdingAPI.Web.Framework.Clients
+{
+ /// <summary>A client for fetching update check info from a mod site.</summary>
+ internal interface IModSiteClient
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The unique key for the mod site.</summary>
+ public ModSiteKey SiteKey { get; }
+
+
+ /*********
+ ** Methods
+ *********/
+ /// <summary>Get update check info about a mod.</summary>
+ /// <param name="id">The mod ID.</param>
+ Task<IModPage> GetModData(string id);
+ }
+}