new StatusMessage(status, description) → {Object}
This class represents a status that will be passed into callback functions.
Parameters:
Name | Type | Description |
---|---|---|
status |
String | The value maybe WCAP.STATUS_INFO or WCAP.STATUS_ERROR. |
description |
Object | Description of status. |
Returns:
Public API's to get status message.
- Type
- Object
Methods
-
<static> getDescription() → {Object}
-
Get the description of the status.
Returns:
description of the status
- Type
- Object
-
<static> getStatus() → {String}
-
Get the status
Returns:
status of message
- Type
- String