Added parameterless constructor for RestObject required for JavaScriptSerializer.Deserialize
This commit is contained in:
parent
5d4e210a26
commit
c258406bcb
1 changed files with 8 additions and 1 deletions
|
|
@ -41,7 +41,14 @@ namespace Rests
|
|||
set { this["response"] = value; }
|
||||
}
|
||||
|
||||
public RestObject(string status = "200")
|
||||
// Parameterless constructor for deseralisation required by JavaScriptSerializer.Deserialize in TShockRestTestPlugin
|
||||
// Note: The constructor with all defaults isn't good enough :(
|
||||
public RestObject()
|
||||
{
|
||||
Status = "200";
|
||||
}
|
||||
|
||||
public RestObject(string status = "200")
|
||||
{
|
||||
Status = status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue