|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.TweetJSONImpl
final class TweetJSONImpl
A data class representing a Tweet in the search response
Field Summary | |
---|---|
private Annotations |
annotations
|
private java.util.Date |
createdAt
|
private java.lang.String |
fromUser
|
private long |
fromUserId
|
private GeoLocation |
geoLocation
|
private long |
id
|
private java.lang.String |
isoLanguageCode
|
private java.lang.String |
location
|
private java.lang.String |
profileImageUrl
|
private static long |
serialVersionUID
|
private java.lang.String |
source
|
private java.lang.String |
text
|
private java.lang.String |
toUser
|
private long |
toUserId
|
Constructor Summary | |
---|---|
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet)
|
Method Summary | |
---|---|
int |
compareTo(Tweet that)
|
boolean |
equals(java.lang.Object o)
|
Annotations |
getAnnotations()
Returns the annotations of the tweet. |
java.util.Date |
getCreatedAt()
returns the created_at |
java.lang.String |
getFromUser()
returns the from_user |
long |
getFromUserId()
returns the user id of the tweet's owner. Warning: The user ids in the Search API are different from those in the REST API (about the two APIs). |
GeoLocation |
getGeoLocation()
Returns The location that this tweet refers to if available. |
long |
getId()
returns the status id of the tweet |
java.lang.String |
getIsoLanguageCode()
returns the iso language code of the tweet |
java.lang.String |
getLocation()
Returns the textual location where this tweet was posted. |
java.lang.String |
getProfileImageUrl()
returns the profile_image_url |
java.lang.String |
getSource()
returns the source of the tweet |
java.lang.String |
getText()
returns the text |
java.lang.String |
getToUser()
returns the to_user |
long |
getToUserId()
returns the to_user_id |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String text
private long toUserId
private java.lang.String toUser
private java.lang.String fromUser
private long id
private long fromUserId
private java.lang.String isoLanguageCode
private java.lang.String source
private java.lang.String profileImageUrl
private java.util.Date createdAt
private java.lang.String location
private GeoLocation geoLocation
private Annotations annotations
Constructor Detail |
---|
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet) throws TwitterException
TwitterException
Method Detail |
---|
public int compareTo(Tweet that)
compareTo
in interface java.lang.Comparable<Tweet>
public java.lang.String getText()
getText
in interface Tweet
public long getToUserId()
getToUserId
in interface Tweet
public java.lang.String getToUser()
getToUser
in interface Tweet
public java.lang.String getFromUser()
getFromUser
in interface Tweet
public long getId()
getId
in interface Tweet
public long getFromUserId()
getFromUserId
in interface Tweet
public java.lang.String getIsoLanguageCode()
getIsoLanguageCode
in interface Tweet
public java.lang.String getSource()
getSource
in interface Tweet
public java.lang.String getProfileImageUrl()
getProfileImageUrl
in interface Tweet
public java.util.Date getCreatedAt()
getCreatedAt
in interface Tweet
public GeoLocation getGeoLocation()
getGeoLocation
in interface Tweet
public java.lang.String getLocation()
getLocation
in interface Tweet
public Annotations getAnnotations()
getAnnotations
in interface Tweet
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |