twitter4j
Class QueryResult

java.lang.Object
  extended by twitter4j.TwitterResponse
      extended by twitter4j.QueryResult
All Implemented Interfaces:
java.io.Serializable

public class QueryResult
extends TwitterResponse

A data class representing search API response

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
Serialized Form

Field Summary
private  double completedIn
           
private  long maxId
           
private  int page
           
private  java.lang.String query
           
private  java.lang.String refreshUrl
           
private  int resultsPerPage
           
private static long serialVersionUID
           
private  long sinceId
           
private  int total
           
private  java.util.List<Tweet> tweets
           
private  java.lang.String warning
           
 
Constructor Summary
QueryResult(Query query)
           
QueryResult(twitter4j.http.Response res, TwitterSupport twitterSupport)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 double getCompletedIn()
           
 long getMaxId()
           
 int getPage()
           
 java.lang.String getQuery()
           
 java.lang.String getRefreshUrl()
           
 int getResultsPerPage()
           
 long getSinceId()
           
 int getTotal()
          Deprecated. The Twitter API doesn't return total anymore
 java.util.List<Tweet> getTweets()
           
 java.lang.String getWarning()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponse
ensureRootNodeNameIs, ensureRootNodeNameIs, ensureRootNodeNameIs, getBoolean, getChildBoolean, getChildDate, getChildDate, getChildInt, getChildLong, getChildText, getInt, getLong, getRateLimitLimit, getRateLimitRemaining, getRateLimitReset, getString, getTextContent, isRootNodeNilClasses, parseDate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sinceId

private long sinceId

maxId

private long maxId

refreshUrl

private java.lang.String refreshUrl

resultsPerPage

private int resultsPerPage

total

private int total

warning

private java.lang.String warning

completedIn

private double completedIn

page

private int page

query

private java.lang.String query

tweets

private java.util.List<Tweet> tweets

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

QueryResult

QueryResult(twitter4j.http.Response res,
            TwitterSupport twitterSupport)
      throws TwitterException
Throws:
TwitterException

QueryResult

QueryResult(Query query)
      throws TwitterException
Throws:
TwitterException
Method Detail

getSinceId

public long getSinceId()

getMaxId

public long getMaxId()

getRefreshUrl

public java.lang.String getRefreshUrl()

getResultsPerPage

public int getResultsPerPage()

getTotal

public int getTotal()
Deprecated. The Twitter API doesn't return total anymore

returns the number of hits

Returns:
number of hits
See Also:
TRJ-108 deprecate QueryResult#getTotal()

getWarning

public java.lang.String getWarning()

getCompletedIn

public double getCompletedIn()

getPage

public int getPage()

getQuery

public java.lang.String getQuery()

getTweets

public java.util.List<Tweet> getTweets()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object