|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.TwitterResponseImpl
twitter4j.StatusJSONImpl
final class StatusJSONImpl
A data class representing one single status of a user.
Field Summary | |
---|---|
private Annotations |
annotations
|
private java.lang.String[] |
contributors
|
private java.util.Date |
createdAt
|
private GeoLocation |
geoLocation
|
private HashtagEntity[] |
hashtagEntities
|
private long |
id
|
private java.lang.String |
inReplyToScreenName
|
private long |
inReplyToStatusId
|
private long |
inReplyToUserId
|
private boolean |
isFavorited
|
private boolean |
isTruncated
|
private static twitter4j.internal.logging.Logger |
logger
|
private Place |
place
|
private long |
retweetCount
|
private Status |
retweetedStatus
|
private static long |
serialVersionUID
|
private java.lang.String |
source
|
private java.lang.String |
text
|
private URLEntity[] |
urlEntities
|
private User |
user
|
private UserMentionEntity[] |
userMentionEntities
|
private boolean |
wasRetweetedByMe
|
Constructor Summary | |
---|---|
StatusJSONImpl(twitter4j.internal.http.HttpResponse res,
Configuration conf)
|
|
StatusJSONImpl(twitter4j.internal.org.json.JSONObject json)
|
Method Summary | |
---|---|
int |
compareTo(Status that)
|
(package private) static ResponseList<Status> |
createStatusList(twitter4j.internal.http.HttpResponse res,
Configuration conf)
|
boolean |
equals(java.lang.Object obj)
|
Annotations |
getAnnotations()
Returns the annotations, or null if no annotations are associated with this status. |
java.lang.String[] |
getContributors()
Returns an array of contributors, or null if no contributor is associated with this status. |
java.util.Date |
getCreatedAt()
Return the created_at |
GeoLocation |
getGeoLocation()
Returns The location that this tweet refers to if available. |
HashtagEntity[] |
getHashtagEntities()
Returns an array if hashtag mentioned in the tweet, or null if no hashtag were mentioned. |
long |
getId()
Returns the id of the status |
java.lang.String |
getInReplyToScreenName()
Returns the in_reply_to_screen_name |
long |
getInReplyToStatusId()
Returns the in_reply_tostatus_id |
long |
getInReplyToUserId()
Returns the in_reply_user_id |
Place |
getPlace()
Returns the place attached to this status |
long |
getRetweetCount()
Returns the number of times this tweet has been retweeted, or -1 when the tweet was created before this feature was enabled. |
Status |
getRetweetedStatus()
|
java.lang.String |
getSource()
Returns the source |
java.lang.String |
getText()
Returns the text of the status |
URLEntity[] |
getURLEntities()
Returns an array if URLEntity mentioned in the tweet, or null if no URLs were mentioned. |
User |
getUser()
Return the user associated with the status. This can be null if the instance if from User.getStatus(). |
UserMentionEntity[] |
getUserMentionEntities()
Returns an array of user mentions in the tweet, or null if no users were mentioned. |
int |
hashCode()
|
private void |
init(twitter4j.internal.org.json.JSONObject json)
|
boolean |
isFavorited()
Test if the status is favorited |
boolean |
isRetweet()
|
boolean |
isRetweetedByMe()
Returns true if the authenticating user has retweeted this tweet, or false when the tweet was created before this feature was enabled. |
boolean |
isTruncated()
Test if the status is truncated |
java.lang.String |
toString()
|
Methods inherited from class twitter4j.TwitterResponseImpl |
---|
getRateLimitStatus |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface twitter4j.TwitterResponse |
---|
getRateLimitStatus |
Field Detail |
---|
private static final twitter4j.internal.logging.Logger logger
private static final long serialVersionUID
private java.util.Date createdAt
private long id
private java.lang.String text
private java.lang.String source
private boolean isTruncated
private long inReplyToStatusId
private long inReplyToUserId
private boolean isFavorited
private java.lang.String inReplyToScreenName
private GeoLocation geoLocation
private Place place
private long retweetCount
private boolean wasRetweetedByMe
private java.lang.String[] contributors
private Annotations annotations
private Status retweetedStatus
private UserMentionEntity[] userMentionEntities
private URLEntity[] urlEntities
private HashtagEntity[] hashtagEntities
private User user
Constructor Detail |
---|
StatusJSONImpl(twitter4j.internal.http.HttpResponse res, Configuration conf) throws TwitterException
TwitterException
StatusJSONImpl(twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
Method Detail |
---|
private void init(twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
public int compareTo(Status that)
compareTo
in interface java.lang.Comparable<Status>
public java.util.Date getCreatedAt()
getCreatedAt
in interface Status
public long getId()
getId
in interface Status
public java.lang.String getText()
getText
in interface Status
public java.lang.String getSource()
getSource
in interface Status
public boolean isTruncated()
isTruncated
in interface Status
public long getInReplyToStatusId()
getInReplyToStatusId
in interface Status
public long getInReplyToUserId()
getInReplyToUserId
in interface Status
public java.lang.String getInReplyToScreenName()
getInReplyToScreenName
in interface Status
public GeoLocation getGeoLocation()
getGeoLocation
in interface Status
public Place getPlace()
getPlace
in interface Status
public java.lang.String[] getContributors()
getContributors
in interface Status
public Annotations getAnnotations()
getAnnotations
in interface Status
public boolean isFavorited()
isFavorited
in interface Status
public User getUser()
getUser
in interface Status
public boolean isRetweet()
isRetweet
in interface Status
public Status getRetweetedStatus()
getRetweetedStatus
in interface Status
public long getRetweetCount()
getRetweetCount
in interface Status
public boolean isRetweetedByMe()
isRetweetedByMe
in interface Status
public UserMentionEntity[] getUserMentionEntities()
getUserMentionEntities
in interface Status
public URLEntity[] getURLEntities()
getURLEntities
in interface Status
public HashtagEntity[] getHashtagEntities()
getHashtagEntities
in interface Status
static ResponseList<Status> createStatusList(twitter4j.internal.http.HttpResponse res, Configuration conf) throws TwitterException
TwitterException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
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 |