fix update check error

This commit is contained in:
Jesse Plamondon-Willard 2017-10-09 21:03:25 -04:00
parent c456a0f56e
commit 4f8994a1de
2 changed files with 14 additions and 5 deletions

View File

@ -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)
{

View File

@ -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)
{