Represents a unit variable as part of a message sent from Task to end-user's smartphone.

Remarks

The unit may be presented differently based on the end-user's locale information. For example, if the variable is a number with “Unit of Measure” of “degree Celsius”. It will be automatically converted to “degree Fahrenheit” on users’ smartphones with localization of “United States”. The same is true for length or weight (meters vs inches, feet, or yards, or kilograms vs pounds or ounces).

Hierarchy

Properties

Properties

type: "unit"

Type of variable, could be the following

unit: string

The unit code, defined in “The Unified Code for Units of Measure” (look for the “c/s” field).

value: number

The unit value.

Generated using TypeDoc