summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModUpdateChecking
diff options
context:
space:
mode:
authorDan Volchek <volchek2@illinois.edu>2018-06-10 15:05:59 -0700
committerDan Volchek <volchek2@illinois.edu>2018-06-10 15:05:59 -0700
commit0b2e46d55cb09a169c7bb64ade37c82fc8233cb3 (patch)
tree63baa56fd371e92eec6b509241c0037c3b68df59 /src/SMAPI/Framework/ModUpdateChecking
parent1fa2632289134c39f268c374bb290549f28751d5 (diff)
downloadSMAPI-0b2e46d55cb09a169c7bb64ade37c82fc8233cb3.tar.gz
SMAPI-0b2e46d55cb09a169c7bb64ade37c82fc8233cb3.tar.bz2
SMAPI-0b2e46d55cb09a169c7bb64ade37c82fc8233cb3.zip
refactor IModMetadata update info
Diffstat (limited to 'src/SMAPI/Framework/ModUpdateChecking')
-rw-r--r--src/SMAPI/Framework/ModUpdateChecking/ModUpdateStatus.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModUpdateChecking/ModUpdateStatus.cs b/src/SMAPI/Framework/ModUpdateChecking/ModUpdateStatus.cs
new file mode 100644
index 00000000..7f588b66
--- /dev/null
+++ b/src/SMAPI/Framework/ModUpdateChecking/ModUpdateStatus.cs
@@ -0,0 +1,32 @@
+namespace StardewModdingAPI.Framework.ModUpdateChecking
+{
+ /// <summary>Update status for a mod.</summary>
+ internal class ModUpdateStatus
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The version that this mod can be updated to (if any).</summary>
+ public ISemanticVersion Version { get; }
+
+ /// <summary>The error checking for updates of this mod (if any).</summary>
+ public string Error { get; }
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="version">The version that this mod can be update to.</param>
+ public ModUpdateStatus(ISemanticVersion version)
+ {
+ this.Version = version;
+ }
+
+ /// <summary>Construct an instance.</summary>
+ /// <param name="error">The error checking for updates of this mod.</param>
+ public ModUpdateStatus(string error)
+ {
+ this.Error = error;
+ }
+ }
+}