org.springframework.social.twitter.api
Class SearchResults

java.lang.Object
  extended by org.springframework.social.twitter.api.TwitterObject
      extended by org.springframework.social.twitter.api.SearchResults

public class SearchResults
extends TwitterObject

Represents the results of a Twitter search, including matching Tweets and any metadata associated with that search.


Constructor Summary
SearchResults(List<Tweet> tweets, SearchMetadata metaData)
           
SearchResults(List<Tweet> tweets, SearchMetadata metaData, boolean lastPage)
           
 
Method Summary
 SearchMetadata getSearchMetadata()
          Returns the SearchMetadata associated with a particular search
 List<Tweet> getTweets()
          Returns the list of matching Tweets
 boolean isLastPage()
          Returns true if this is the last page of matching Tweets; false if there are more pages that follow this one.
 
Methods inherited from class org.springframework.social.twitter.api.TwitterObject
add, getExtraData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResults

public SearchResults(List<Tweet> tweets,
                     SearchMetadata metaData)

SearchResults

public SearchResults(List<Tweet> tweets,
                     SearchMetadata metaData,
                     boolean lastPage)
Method Detail

getTweets

public List<Tweet> getTweets()
Returns the list of matching Tweets


getSearchMetadata

public SearchMetadata getSearchMetadata()
Returns the SearchMetadata associated with a particular search


isLastPage

public boolean isLastPage()
Returns true if this is the last page of matching Tweets; false if there are more pages that follow this one.