fix update check error
This commit is contained in:
parent
c456a0f56e
commit
4f8994a1de
|
@ -22,7 +22,14 @@ namespace StardewModdingAPI.Common.Models
|
||||||
/*********
|
/*********
|
||||||
** Public methods
|
** 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="name">The mod name.</param>
|
||||||
/// <param name="version">The mod's semantic version number.</param>
|
/// <param name="version">The mod's semantic version number.</param>
|
||||||
/// <param name="url">The mod's web URL.</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
|
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>
|
/// <param name="error">The error message indicating why the mod is invalid.</param>
|
||||||
public ModInfoModel(string error)
|
public ModInfoModel(string error)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,10 +17,12 @@ namespace StardewModdingAPI.Common.Models
|
||||||
** Public methods
|
** Public methods
|
||||||
*********/
|
*********/
|
||||||
/// <summary>Construct an empty instance.</summary>
|
/// <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>
|
/// <param name="modKeys">The namespaced mod keys to search.</param>
|
||||||
public ModSearchModel(IEnumerable<string> modKeys)
|
public ModSearchModel(IEnumerable<string> modKeys)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue