public class SearchResponse
extends java.lang.Object
Encapsulates the results of a Search
.
Modifier and Type | Method and Description |
---|---|
static SearchResponse |
fromJSONObject(org.json.JSONObject json,
EditorKey appKey,
int maxResults)
Constructs a SearchResponse from a json response.
|
java.util.List<SearchResult> |
getResults()
Gets the search results.
|
public static SearchResponse fromJSONObject(org.json.JSONObject json, EditorKey appKey, int maxResults) throws org.json.JSONException
Constructs a SearchResponse from a json response.
org.json.JSONException
- on malformed JSONpublic java.util.List<SearchResult> getResults()
Gets the search results.