summaryrefslogtreecommitdiff
path: root/src/SMAPI.Common/Models/ModInfoModel.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-01 18:44:39 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-01 18:44:39 -0400
commit009a387526ee10b18d0ed3030d6e8868edf17203 (patch)
tree2651a2c11cf33cbb9b75a680911249f4fce4da94 /src/SMAPI.Common/Models/ModInfoModel.cs
parent3255518f0a9d18f2d25859747a21bd54759b8f84 (diff)
downloadSMAPI-009a387526ee10b18d0ed3030d6e8868edf17203.tar.gz
SMAPI-009a387526ee10b18d0ed3030d6e8868edf17203.tar.bz2
SMAPI-009a387526ee10b18d0ed3030d6e8868edf17203.zip
unify SMAPI.AssemblyRewriters and SMAPI.Common projects
Diffstat (limited to 'src/SMAPI.Common/Models/ModInfoModel.cs')
-rw-r--r--src/SMAPI.Common/Models/ModInfoModel.cs56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/SMAPI.Common/Models/ModInfoModel.cs b/src/SMAPI.Common/Models/ModInfoModel.cs
deleted file mode 100644
index 48df235a..00000000
--- a/src/SMAPI.Common/Models/ModInfoModel.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-namespace StardewModdingAPI.Common.Models
-{
- /// <summary>Generic metadata about a mod.</summary>
- internal class ModInfoModel
- {
- /*********
- ** Accessors
- *********/
- /// <summary>The mod name.</summary>
- public string Name { get; set; }
-
- /// <summary>The semantic version for the mod's latest release.</summary>
- public string Version { get; set; }
-
- /// <summary>The semantic version for the mod's latest preview release, if available and different from <see cref="Version"/>.</summary>
- public string PreviewVersion { get; set; }
-
- /// <summary>The mod's web URL.</summary>
- public string Url { get; set; }
-
- /// <summary>The error message indicating why the mod is invalid (if applicable).</summary>
- public string Error { get; set; }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an empty instance.</summary>
- public ModInfoModel()
- {
- // needed for JSON deserialising
- }
-
- /// <summary>Construct an instance.</summary>
- /// <param name="name">The mod name.</param>
- /// <param name="version">The semantic version for the mod's latest release.</param>
- /// <param name="previewVersion">The semantic version for the mod's latest preview release, if available and different from <see cref="Version"/>.</param>
- /// <param name="url">The mod's web URL.</param>
- /// <param name="error">The error message indicating why the mod is invalid (if applicable).</param>
- public ModInfoModel(string name, string version, string url, string previewVersion = null, string error = null)
- {
- this.Name = name;
- this.Version = version;
- this.PreviewVersion = previewVersion;
- this.Url = url;
- this.Error = error; // mainly initialised here for the JSON deserialiser
- }
-
- /// <summary>Construct an instance.</summary>
- /// <param name="error">The error message indicating why the mod is invalid.</param>
- public ModInfoModel(string error)
- {
- this.Error = error;
- }
- }
-}