From 4f8994a1debdc4f1b2cb39854977e3b00a851992 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 9 Oct 2017 21:03:25 -0400 Subject: fix update check error --- src/SMAPI.Common/Models/ModInfoModel.cs | 11 +++++++++-- src/SMAPI.Common/Models/ModSeachModel.cs | 8 +++++--- 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'src/SMAPI.Common/Models') diff --git a/src/SMAPI.Common/Models/ModInfoModel.cs b/src/SMAPI.Common/Models/ModInfoModel.cs index 4daa7064..48305cb8 100644 --- a/src/SMAPI.Common/Models/ModInfoModel.cs +++ b/src/SMAPI.Common/Models/ModInfoModel.cs @@ -22,7 +22,14 @@ namespace StardewModdingAPI.Common.Models /********* ** Public methods *********/ - /// Construct a valid instance. + /// Construct an empty instance. + public ModInfoModel() + { + // needed for JSON deserialising + } + + + /// Construct an instance. /// The mod name. /// The mod's semantic version number. /// The mod's web URL. @@ -35,7 +42,7 @@ namespace StardewModdingAPI.Common.Models this.Error = error; // mainly initialised here for the JSON deserialiser } - /// Construct an valid instance. + /// Construct an instance. /// The error message indicating why the mod is invalid. public ModInfoModel(string error) { diff --git a/src/SMAPI.Common/Models/ModSeachModel.cs b/src/SMAPI.Common/Models/ModSeachModel.cs index 3f69f0ae..13b05d2d 100644 --- a/src/SMAPI.Common/Models/ModSeachModel.cs +++ b/src/SMAPI.Common/Models/ModSeachModel.cs @@ -17,10 +17,12 @@ namespace StardewModdingAPI.Common.Models ** Public methods *********/ /// Construct an empty instance. - /// This constructed is needed for JSON deserialisation. - public ModSearchModel() { } + public ModSearchModel() + { + // needed for JSON deserialising + } - /// Construct an valid instance. + /// Construct an instance. /// The namespaced mod keys to search. public ModSearchModel(IEnumerable modKeys) { -- cgit