Libertas OS API Documentation
    Preparing search index...

    Interface LibertasMessageVariableUnit

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

    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).

    interface LibertasMessageVariableUnit {
        type: "unit";
        unit: string;
        value: number;
    }

    Hierarchy (View Summary)

    Index

    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.