sCResult

sCResult

Result object of any operation

Constructor

new sCResult(status_code, message, body)

This constructor is used to deliver the data to the business logic of your project.

Parameters:
Name Type Description
status_code Number

The status codes tells you if the operation was successful.

message String

The message describes more information about the operation.

body String | Object | Array

The body contains the useable information for your app.

Source:

Classes

sCResult

Members

status_code :number

Returns you a three digit number.

Source:

message :string

Returns you the message, received from the backend with detailed information about what happend during the operation.

Source:

data :string

Returns the actual data, if it exists. Check first with response.data !== undefined. It is the equal of the received body property from the backend.

Source:

isOK

Returns true if everything was fine and no further operation has to be done.

Source: