| Constructor and Description |
|---|
TwinQueryResponse(String json,
QueryClient queryClient,
String originalQuery) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Twin |
next()
Return the next Twin from the query.
|
Twin |
next(QueryPageOptions pageOptions)
Return the next Twin from the query.
|
public TwinQueryResponse(String json, QueryClient queryClient, String originalQuery)
public boolean hasNext()
public Twin next() throws IotHubException, IOException
IotHubException - If any IoT Hub level errors occur such as an IotHubUnauthorizedException.IOException - If any network level errors occur.NoSuchElementException - If there is no next Twin to return anymore.public Twin next(QueryPageOptions pageOptions) throws IotHubException, IOException, NoSuchElementException
pageOptions - the options for the next page of results if the next page is retrieved to fulfil this request
for the next Twin. May not be null.IotHubException - If any IoT Hub level errors occur such as an IotHubUnauthorizedException.IOException - If any network level errors occur.NoSuchElementException - If there is no next Twin to return anymore.Copyright © 2024. All rights reserved.