The identifier of a single IDevice.

Constructors

Methods

Properties

Constructors

  • Parameters

    • id: string

      The ID of the device.

    Returns DeviceId

Methods

  • Compares two IDs to verify whether or not they point at the same device.

    Parameters

    • that: DeviceId

      the other device ID that you want to compare this one to.

    Returns boolean

    true if the two IDs point at the same device.

    In certain cases, the ID property differs but the two objects will point at the same device. For this reason, you must use the equals method instead of manually comparing ID.

  • Parameters

    Returns boolean

  • Generates a string representation of the ID.

    Returns string

    a string representation of the ID.

Properties

id: string

The ID of the device.