|
|||||||||
| 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 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 |
profileImageUrl
|
private static long |
serialVersionUID
|
private java.lang.String |
source
|
private java.lang.String |
text
|
private java.lang.String |
toUser
|
private int |
toUserId
|
| Constructor Summary | |
|---|---|
TweetJSONImpl(twitter4j.org.json.JSONObject tweet)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 GeoLocation geoLocation
private static final long serialVersionUID
| Constructor Detail |
|---|
TweetJSONImpl(twitter4j.org.json.JSONObject tweet)
throws TwitterException
TwitterException| Method Detail |
|---|
public java.lang.String getText()
getText in interface Tweetpublic int getToUserId()
getToUserId in interface Tweetpublic java.lang.String getToUser()
getToUser in interface Tweetpublic java.lang.String getFromUser()
getFromUser in interface Tweetpublic long getId()
getId in interface Tweetpublic int getFromUserId()
getFromUserId in interface Tweetpublic java.lang.String getIsoLanguageCode()
getIsoLanguageCode in interface Tweetpublic java.lang.String getSource()
getSource in interface Tweetpublic java.lang.String getProfileImageUrl()
getProfileImageUrl in interface Tweetpublic java.util.Date getCreatedAt()
getCreatedAt in interface Tweetpublic GeoLocation getGeoLocation()
getGeoLocation 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||