| Modifier and Type | Field and Description |
|---|---|
private Annotations |
annotations |
private java.util.Date |
createdAt |
private java.lang.String |
fromUser |
private int |
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 int |
toUserId |
| Constructor and Description |
|---|
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet) |
| Modifier and Type | Method and Description |
|---|---|
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
|
int |
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
|
int |
getToUserId()
returns the to_user_id
|
int |
hashCode() |
java.lang.String |
toString() |
private java.lang.String text
private int toUserId
private java.lang.String toUser
private java.lang.String fromUser
private long id
private int 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
private static final long serialVersionUID
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet)
throws TwitterException
TwitterExceptionpublic int compareTo(Tweet that)
compareTo in interface java.lang.Comparable<Tweet>public java.lang.String getText()
public int getToUserId()
getToUserId in interface Tweetpublic java.lang.String getToUser()
public java.lang.String getFromUser()
getFromUser in interface Tweetpublic long getId()
public int getFromUserId()
getFromUserId in interface Tweetpublic java.lang.String getIsoLanguageCode()
getIsoLanguageCode in interface Tweetpublic java.lang.String getSource()
public java.lang.String getProfileImageUrl()
getProfileImageUrl in interface Tweetpublic java.util.Date getCreatedAt()
getCreatedAt in interface Tweetpublic GeoLocation getGeoLocation()
getGeoLocation in interface Tweetpublic java.lang.String getLocation()
getLocation in interface Tweetpublic Annotations getAnnotations()
getAnnotations in interface Tweetpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object