ReportStateAndNotificationRequest class
Request type for the
[ReportStateAndNotification
](#google.home.graph.v1.HomeGraphApiService.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 } }, } } }
Constructors
- ReportStateAndNotificationRequest({String? agentUserId, String? eventId, String? followUpToken, StateAndNotificationPayload? payload, String? requestId})
- ReportStateAndNotificationRequest.fromJson(Map json_)
Properties
- agentUserId ↔ String?
-
Third-party user ID.
getter/setter pair
- eventId ↔ String?
-
Unique identifier per event (for example, a doorbell press).
getter/setter pair
- followUpToken ↔ String?
-
Deprecated.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- payload ↔ StateAndNotificationPayload?
-
State of devices to update and notification metadata for devices.
getter/setter pair
- requestId ↔ String?
-
Request ID used for debugging.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited