twitter4j
Class SavedSearch
java.lang.Object
twitter4j.TwitterResponse
twitter4j.SavedSearch
- All Implemented Interfaces:
- java.io.Serializable
public class SavedSearch
- extends TwitterResponse
A data class representing a Saved Search
- Since:
- Twitter4J 2.0.8
- Author:
- Yusuke Yamamoto - yusuke at mac.com
- See Also:
- Serialized Form
Constructor Summary |
SavedSearch(twitter4j.org.json.JSONObject savedSearch)
|
SavedSearch(twitter4j.http.Response res)
|
SavedSearch(twitter4j.http.Response res,
twitter4j.org.json.JSONObject json)
|
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 |
createdAt
private java.util.Date createdAt
query
private java.lang.String query
position
private int position
name
private java.lang.String name
id
private int id
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
SavedSearch
SavedSearch(twitter4j.http.Response res)
throws TwitterException
- Throws:
TwitterException
SavedSearch
SavedSearch(twitter4j.http.Response res,
twitter4j.org.json.JSONObject json)
throws TwitterException
- Throws:
TwitterException
SavedSearch
SavedSearch(twitter4j.org.json.JSONObject savedSearch)
throws TwitterException
- Throws:
TwitterException
constructSavedSearches
static java.util.List<SavedSearch> constructSavedSearches(twitter4j.http.Response res)
throws TwitterException
- Throws:
TwitterException
init
private void init(twitter4j.org.json.JSONObject savedSearch)
throws TwitterException
- Throws:
TwitterException
getCreatedAt
public java.util.Date getCreatedAt()
getQuery
public java.lang.String getQuery()
getPosition
public int getPosition()
getName
public java.lang.String getName()
getId
public int getId()
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