Removed error constructor. Added response property.

This commit is contained in:
high 2011-09-05 14:05:16 -04:00
parent 89f5d13efb
commit a0da52e558
3 changed files with 10 additions and 10 deletions

View file

@ -154,16 +154,16 @@ namespace TShockAPI
get { return SafeGet("error"); }
set { SafeSet("error", value); }
}
public string Response
{
get { return SafeGet("response"); }
set { SafeSet("response", value); }
}
public RestObject(string status)
{
Status = status;
}
public RestObject(string status, string error)
: this(status)
{
Error = error;
}
/// <summary>
/// Gets value safely.