Device

Device

new Device(token, skipSTT, settings, configuration)

Source:
Parameters:
Name Type Default Description
token string
skipSTT boolean false
settings Object.<string, string>
configuration any

Members

platform :string

Returns the name of the platform this device corresponds to

Source:
Type:
  • string

settings

Source:

tags :Array.<string>

Source:
Type:
  • Array.<string>

token :string

Source:
Type:
  • string

Methods

addTag(tag) → {void}

Source:
Parameters:
Name Type Description
tag string
Returns:
Type:
void

hasTags(tags) → {boolean}

Source:
Parameters:
Name Type Description
tags Array.<string>
Returns:
Type:
boolean

(async) message(record, messages, attemptopt) → {Promise.<Array.<any>>}

Source:
Parameters:
Name Type Attributes Default Description
record Record
messages Array.<string>
attempt number <optional>
1
Returns:
Type:
Promise.<Array.<any>>