bing.responses
Class BingBundleResponse
java.lang.Object
bing.responses.BingResponse
bing.responses.BingBundleResponse
public class BingBundleResponse
- extends BingResponse
A bundle response object holds one or many other response objects.
Methods inherited from class bing.responses.BingResponse |
addResult, getAlterationOverrideQuery, getAlteredQuery, getOffset, getQuery, getTotal, handleElements, hashCode, setAlterationOverrideQuery, setAlteredQuery, setOffset, setQuery, setTotal |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
BingBundleResponse
public BingBundleResponse()
addResponse
public void addResponse(BingResponse response)
- Add a BingResponse to this bundle response
- Parameters:
response
- Response to be added to this bundle response
responses
public BingResponse[] responses()
- Get the responses that this Response object holds.
- Returns:
- Array of Response objects. Empty if the search returned no results.
results
public BingResult[] results()
- Because this is a bundle response it does not return BingResults, it returns BingResponses. Use
responses()
to get the bundled responses.
- Overrides:
results
in class BingResponse
- Returns:
- Returns null.