From ca58da37cd8cd9818b71a2b67b5186e7ab81a73c Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 8 Oct 2017 02:13:08 -0400 Subject: add prerelease tag to zip name & normalise version format --- src/SMAPI.Common/Models/ModInfoModel.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/SMAPI.Common/Models') 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 { /// Generic metadata about a mod. @@ -9,16 +7,16 @@ namespace StardewModdingAPI.Common.Models ** Accessors *********/ /// The mod name. - public string Name { get; } + public string Name { get; set; } /// The mod's semantic version number. - public string Version { get; } + public string Version { get; set; } /// The mod's web URL. - public string Url { get; } + public string Url { get; set; } /// The error message indicating why the mod is invalid (if applicable). - public string Error { get; } + public string Error { get; set; } /********* @@ -29,7 +27,6 @@ namespace StardewModdingAPI.Common.Models /// The mod's semantic version number. /// The mod's web URL. /// The error message indicating why the mod is invalid (if applicable). - [JsonConstructor] public ModInfoModel(string name, string version, string url, string error = null) { this.Name = name; -- cgit