summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Clients/Pastebin/SavePasteResult.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-12-24 23:40:23 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-12-24 23:40:23 -0500
commitbbd021f8736d1496f34a58b12bb0ee6c341d1c5e (patch)
treebd31841d13f8ada582fd6aaf0f97f918449c719a /src/SMAPI.Web/Framework/Clients/Pastebin/SavePasteResult.cs
parent05541c11a72735d79d98cf3ae14d592e70bd8f54 (diff)
downloadSMAPI-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/SavePasteResult.cs')
-rw-r--r--src/SMAPI.Web/Framework/Clients/Pastebin/SavePasteResult.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/Pastebin/SavePasteResult.cs b/src/SMAPI.Web/Framework/Clients/Pastebin/SavePasteResult.cs
new file mode 100644
index 00000000..89dab697
--- /dev/null
+++ b/src/SMAPI.Web/Framework/Clients/Pastebin/SavePasteResult.cs
@@ -0,0 +1,15 @@
+namespace StardewModdingAPI.Web.Framework.Clients.Pastebin
+{
+ /// <summary>The response for a save-log request.</summary>
+ internal class SavePasteResult
+ {
+ /// <summary>Whether the log was successfully saved.</summary>
+ public bool Success { get; set; }
+
+ /// <summary>The saved paste ID (if <see cref="Success"/> is <c>true</c>).</summary>
+ public string ID { get; set; }
+
+ /// <summary>The error message (if saving failed).</summary>
+ public string Error { get; set; }
+ }
+}