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.


Constructor Summary
SearchResults(java.util.List<Tweet> tweets, long maxId, long sinceId)
           
SearchResults(java.util.List<Tweet> tweets, long maxId, long sinceId, boolean lastPage)
           
 
Method Summary
 long getMaxId()
          Returns the maximum Tweet ID in the search results
 long getSinceId()
          Returns the Tweet ID after which all of the matching Tweets were created
 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,
                     long maxId,
                     long sinceId)

SearchResults

public SearchResults(java.util.List<Tweet> tweets,
                     long maxId,
                     long sinceId,
                     boolean lastPage)
Method Detail

getTweets

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


getMaxId

public long getMaxId()
Returns the maximum Tweet ID in the search results


getSinceId

public long getSinceId()
Returns the Tweet ID after which all of the matching Tweets were created


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.