diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-24 23:40:23 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-24 23:40:23 -0500 |
commit | bbd021f8736d1496f34a58b12bb0ee6c341d1c5e (patch) | |
tree | bd31841d13f8ada582fd6aaf0f97f918449c719a /src/SMAPI.Web/Framework/Clients/Pastebin/IPastebinClient.cs | |
parent | 05541c11a72735d79d98cf3ae14d592e70bd8f54 (diff) | |
download | SMAPI-bbd021f8736d1496f34a58b12bb0ee6c341d1c5e.tar.gz SMAPI-bbd021f8736d1496f34a58b12bb0ee6c341d1c5e.tar.bz2 SMAPI-bbd021f8736d1496f34a58b12bb0ee6c341d1c5e.zip |
decouple Pastebin client from log parser (#411)
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/Pastebin/IPastebinClient.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/Pastebin/IPastebinClient.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/Pastebin/IPastebinClient.cs b/src/SMAPI.Web/Framework/Clients/Pastebin/IPastebinClient.cs new file mode 100644 index 00000000..630dfb76 --- /dev/null +++ b/src/SMAPI.Web/Framework/Clients/Pastebin/IPastebinClient.cs @@ -0,0 +1,17 @@ +using System; +using System.Threading.Tasks; + +namespace StardewModdingAPI.Web.Framework.Clients.Pastebin +{ + /// <summary>An API client for Pastebin.</summary> + internal interface IPastebinClient : IDisposable + { + /// <summary>Fetch a saved paste.</summary> + /// <param name="id">The paste ID.</param> + Task<PasteInfo> GetAsync(string id); + + /// <summary>Save a paste to Pastebin.</summary> + /// <param name="content">The paste content.</param> + Task<SavePasteResult> PostAsync(string content); + } +} |