View Source GoogleApi.HomeGraph.V1.Model.QueryResponse (google_api_home_graph v0.13.0)

Response type for the Query call. This should follow the same format as the Google smart home action.devices.QUERY response. Example: json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "payload": { "devices": { "123": { "on": true, "online": true }, "456": { "on": true, "online": true, "brightness": 80, "color": { "name": "cerulean", "spectrumRGB": 31655 } } } } }

Attributes

  • payload (type: GoogleApi.HomeGraph.V1.Model.QueryResponsePayload.t, default: nil) - Device states for the devices given in the request.
  • requestId (type: String.t, default: nil) - Request ID used for debugging. Copied from the request.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.HomeGraph.V1.Model.QueryResponse{
  payload: GoogleApi.HomeGraph.V1.Model.QueryResponsePayload.t() | nil,
  requestId: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.