Command

new Command(json)

Create a Command (this class can be used to make different process communicate together)

Parameters:
NameTypeDescription
jsonobject

json object to configure the command

Properties
NameTypeAttributesDescription
typestring

Type of the command

dataobject<optional>

Data of the command

To Do
  • this class should be removed and be replace by a tag typedef describing this data structure

Members

data :object|null

Data of the command

Type:
  • object | null

type :string

Type of the command

Type:
  • string

Methods

getData() → {object|null}

Returns:

Data of the command

Type: 
object | null

getType() → {string}

Returns:

Type of the command

Type: 
string

toJSON() → {object}

Returns:
  • export to json object command
Type: 
object