Welcome to the Google Home Developer Center, the new destination for learning how to develop smart home actions. Note: You'll continue building actions in the Actions console.
Stay organized with collections Save and categorize content based on your preferences.

ReportState.Response.Builder allows the app to build ReportState payload.

Index

Methods

build

  • build ( ) : Payload
  • Build ParseNotification Response, which is somewhat same as ReportState request (expect agentUserId).

    Returns Payload

setRequestId

  • setRequestId ( requestId string ) : this
  • Parameters

    • requestId: string

      Request ID of the intent.

    Returns this

setState

  • setState ( 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