bing.responses
Class BingBundleResponse

java.lang.Object
  extended by bing.responses.BingResponse
      extended by bing.responses.BingBundleResponse

public class BingBundleResponse
extends BingResponse

A bundle response object holds one or many other response objects.


Constructor Summary
BingBundleResponse()
           
 
Method Summary
 void addResponse(BingResponse response)
          Add a BingResponse to this bundle response
 BingResponse[] responses()
          Get the responses that this Response object holds.
 BingResult[] results()
          Because this is a bundle response it does not return BingResults, it returns BingResponses.
 
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
 

Constructor Detail

BingBundleResponse

public BingBundleResponse()
Method Detail

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.