Join us online for the Google Smart Home Developer Summit on October 21st! Register here to learn what's new, and what's coming up for Google Smart Home.

Use this class to build an instance of ExecuteResponse.

Index

Methods

build

setErrorState

  • setErrorState ( deviceId string ,  errorCode ExecuteErrors ) : this
  • Parameters

    • deviceId: string

      Device ID of the device.

    • errorCode: ExecuteErrors

      If execution failed, provide the errorCode.

    Returns this

setRequestId

  • setRequestId ( requestId string ) : this
  • Parameters

    • requestId: string

      Request ID of the Execute intent.

    Returns this

setSuccessState

  • setSuccessState ( deviceId string ,  deviceState unknown ) : this
  • Parameters

    • deviceId: string

      Device ID of the device.

    • deviceState: unknown

      If execution was successful, provide new state of the device.

    Returns this