public class HomeGraphService.Devices extends Object
Modifier and Type | Class and Description |
---|---|
class | HomeGraphService.Devices.Query |
class | HomeGraphService.Devices.ReportStateAndNotification |
class | HomeGraphService.Devices.RequestSync |
class | HomeGraphService.Devices.Sync |
Constructor and Description |
---|
Devices() |
Modifier and Type | Method and Description |
---|---|
HomeGraphService.Devices.Query | query(QueryRequest content) Gets the current states in Home Graph for the given set of the third-party user's devices. |
HomeGraphService.Devices.ReportStateAndNotification | reportStateAndNotification(ReportStateAndNotificationRequest content) Reports device state and optionally sends device notifications. |
HomeGraphService.Devices.RequestSync | requestSync(RequestSyncDevicesRequest content) Requests Google to send an `action.devices.SYNC` [intent](https://developers.home.google.com/cloud-to-cloud/intents/sync) to your smart home Action to update device metadata for the given user. |
HomeGraphService.Devices.Sync | sync(SyncRequest content) Gets all the devices associated with the given third-party user. |
public HomeGraphService.Devices.Query query(QueryRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the QueryRequest
IOException
public HomeGraphService.Devices.ReportStateAndNotification reportStateAndNotification(ReportStateAndNotificationRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the ReportStateAndNotificationRequest
IOException
public HomeGraphService.Devices.RequestSync requestSync(RequestSyncDevicesRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the RequestSyncDevicesRequest
IOException
public HomeGraphService.Devices.Sync sync(SyncRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the SyncRequest
IOException
Copyright © 2011–2025 Google. All rights reserved.