twitter4j
Class QueryResult
java.lang.Object
twitter4j.TwitterResponse
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
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 |
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
QueryResult
QueryResult(twitter4j.http.Response res,
TwitterSupport twitterSupport)
throws TwitterException
- Throws:
TwitterException
QueryResult
QueryResult(Query query)
throws TwitterException
- Throws:
TwitterException
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