View Source GoogleApi.HomeGraph.V1.Model.ReportStateAndNotificationRequest (google_api_home_graph v0.13.0)
Request type for the ReportStateAndNotification
call. It may include states, notifications, or both. States and notifications are defined per device_id
(for example, "123" and "456" in the following example). Example: json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": { "states": { "123": { "on": true }, "456": { "on": true, "brightness": 10 } }, } } }
Attributes
-
agentUserId
(type:String.t
, default:nil
) - Required. Third-party user ID. -
eventId
(type:String.t
, default:nil
) - Unique identifier per event (for example, a doorbell press). -
followUpToken
(type:String.t
, default:nil
) - Deprecated. -
payload
(type:GoogleApi.HomeGraph.V1.Model.StateAndNotificationPayload.t
, default:nil
) - Required. State of devices to update and notification metadata for devices. -
requestId
(type:String.t
, default:nil
) - Request ID used for debugging.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.HomeGraph.V1.Model.ReportStateAndNotificationRequest{ agentUserId: String.t() | nil, eventId: String.t() | nil, followUpToken: String.t() | nil, payload: GoogleApi.HomeGraph.V1.Model.StateAndNotificationPayload.t() | nil, requestId: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.