diff options
-rw-r--r-- | src/SMAPI.Common/Models/ModInfoModel.cs | 11 | ||||
-rw-r--r-- | src/SMAPI.Common/Models/ModSeachModel.cs | 8 |
2 files changed, 14 insertions, 5 deletions
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 *********/ - /// <summary>Construct a valid instance.</summary> + /// <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 mod's semantic version number.</param> /// <param name="url">The mod's web URL.</param> @@ -35,7 +42,7 @@ namespace StardewModdingAPI.Common.Models this.Error = error; // mainly initialised here for the JSON deserialiser } - /// <summary>Construct an valid instance.</summary> + /// <summary>Construct an instance.</summary> /// <param name="error">The error message indicating why the mod is invalid.</param> 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 *********/ /// <summary>Construct an empty instance.</summary> - /// <remarks>This constructed is needed for JSON deserialisation.</remarks> - public ModSearchModel() { } + public ModSearchModel() + { + // needed for JSON deserialising + } - /// <summary>Construct an valid instance.</summary> + /// <summary>Construct an instance.</summary> /// <param name="modKeys">The namespaced mod keys to search.</param> public ModSearchModel(IEnumerable<string> modKeys) { |