Added parameterless constructor for RestObject required for JavaScriptSerializer.Deserialize

This commit is contained in:
stevenh 2012-02-16 12:01:02 +00:00
parent 5d4e210a26
commit c258406bcb

View file

@ -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;
}