public class QueryResponse extends Response
Constructor and Description |
---|
QueryResponse(String queryResponse)
Create a new query response from the specified JSON encoded string.
|
Modifier and Type | Method and Description |
---|---|
int |
getPageSize()
Get the page size of the results
|
com.google.gson.JsonArray |
getResults()
Get the results of the query
|
protected String |
getRoot()
Get the name of the root JSON result
|
int |
getStart()
Get the start index of the results
|
int |
getTotalResultCount()
Get the total number of objects that matched the query
|
getErrors, getWarnings, wasSuccessful
public QueryResponse(String queryResponse)
queryResponse
- the JSON encoded stringprotected String getRoot()
public int getTotalResultCount()
public com.google.gson.JsonArray getResults()
Depending on the limit of the original request this may include one or more pages.
public int getPageSize()
public int getStart()
Copyright © 2016. All Rights Reserved.