Removed error constructor. Added response property.
This commit is contained in:
parent
89f5d13efb
commit
a0da52e558
3 changed files with 10 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue