Initializes a new instance of that class.
The options.
Private
_dataPrivate
Readonly
_executePrivate
_headersPrivate
Readonly
_messagesPrivate
_statusPrivate
_successReadonly
requestThe underlying request context.
Readonly
responseThe underlying response context.
Gets the data to return.
The data to return.
Gets the current HTTP response headers to add to response.
The HTTP response headers.
Get the messages to return.
The messages to return.
Gets the current status code.
The status code.
Gets the value for the 'success' property of the response.
The value of 'success' property of the response.
Adds a message.
The message.
That instance.
Creates a new API response object.
The new object.
Sets the value for the data property.
The new value.
That instance.
Sets the value for the data property as list response.
That instance.
Generated using TypeDoc
Util class for handling API responses.
Example