Spring Social Twitter

org.springframework.social.twitter.api
Class SearchResults

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

public class SearchResults
extends java.lang.Object

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

Author:
Craig Walls

Constructor Summary
SearchResults(java.util.List<Tweet> tweets, SearchMetadata metaData)
           
SearchResults(java.util.List<Tweet> tweets, SearchMetadata metaData, boolean lastPage)
           
 
Method Summary
 SearchMetadata getSearchMetadata()
          Returns the SearchMetadata associated with a particular search
 java.util.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResults

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

SearchResults

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

getTweets

public java.util.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.


Spring Social Twitter