summaryrefslogtreecommitdiff
path: root/src/SMAPI.Common/Models/ModInfoModel.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-10-08 02:13:08 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-10-08 02:13:08 -0400
commitca58da37cd8cd9818b71a2b67b5186e7ab81a73c (patch)
tree7cc0b9b3b60203254ffa1ebe75636c8394a8e5dd /src/SMAPI.Common/Models/ModInfoModel.cs
parente2e7e096b7f62eb6a5145970ecac3b7edc0bfef1 (diff)
downloadSMAPI-ca58da37cd8cd9818b71a2b67b5186e7ab81a73c.tar.gz
SMAPI-ca58da37cd8cd9818b71a2b67b5186e7ab81a73c.tar.bz2
SMAPI-ca58da37cd8cd9818b71a2b67b5186e7ab81a73c.zip
add prerelease tag to zip name & normalise version format
Diffstat (limited to 'src/SMAPI.Common/Models/ModInfoModel.cs')
-rw-r--r--src/SMAPI.Common/Models/ModInfoModel.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/SMAPI.Common/Models/ModInfoModel.cs b/src/SMAPI.Common/Models/ModInfoModel.cs
index e071c0bb..4daa7064 100644
--- a/src/SMAPI.Common/Models/ModInfoModel.cs
+++ b/src/SMAPI.Common/Models/ModInfoModel.cs
@@ -1,5 +1,3 @@
-using Newtonsoft.Json;
-
namespace StardewModdingAPI.Common.Models
{
/// <summary>Generic metadata about a mod.</summary>
@@ -9,16 +7,16 @@ namespace StardewModdingAPI.Common.Models
** Accessors
*********/
/// <summary>The mod name.</summary>
- public string Name { get; }
+ public string Name { get; set; }
/// <summary>The mod's semantic version number.</summary>
- public string Version { get; }
+ public string Version { get; set; }
/// <summary>The mod's web URL.</summary>
- public string Url { get; }
+ public string Url { get; set; }
/// <summary>The error message indicating why the mod is invalid (if applicable).</summary>
- public string Error { get; }
+ public string Error { get; set; }
/*********
@@ -29,7 +27,6 @@ namespace StardewModdingAPI.Common.Models
/// <param name="version">The mod's semantic version number.</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>
- [JsonConstructor]
public ModInfoModel(string name, string version, string url, string error = null)
{
this.Name = name;