Modifier and Type | Field and Description |
---|---|
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 Place |
place |
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 and Description |
---|
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet) |
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet,
Configuration conf) |
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
|
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.
|
Place |
getPlace()
Returns the place associated with the post.
|
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() |
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 Place place
private GeoLocation geoLocation
private Annotations annotations
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet) throws TwitterException
TwitterException
TweetJSONImpl(twitter4j.internal.org.json.JSONObject tweet, Configuration conf) throws TwitterException
TwitterException
public int compareTo(Tweet that)
compareTo
in interface java.lang.Comparable<Tweet>
public java.lang.String getText()
public long getToUserId()
getToUserId
in interface Tweet
public java.lang.String getToUser()
public java.lang.String getFromUser()
getFromUser
in interface Tweet
public long getId()
public long getFromUserId()
getFromUserId
in interface Tweet
public java.lang.String getIsoLanguageCode()
getIsoLanguageCode
in interface Tweet
public java.lang.String getSource()
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 Place getPlace()
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