Class: module:models/Status

module:models/Status()

new module:models/Status()

Constructs a new Status. Document representing a status of an object.

Source:

Members

(inner) code :String

The status code.

Type:
  • String
Source:

(inner) message :String

The status message.

Type:
  • String
Source:

(inner) status :Number

The status. For more information on the status values see dw.system.Status.OK and dw.system.Status.ERROR.

Type:
  • Number
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/Status}

Constructs a Status from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/Status

Optional instance to populate.

Source:
Returns:

The populated Status instance.

Type
module:models/Status