public final class StatusJSONImpl extends JSONResponseImpl implements Status, java.io.Serializable, JSONResponse
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
StatusJSONImpl(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Status that) |
static ResponseList<Status> |
createStatusList(HttpResponse res,
Configuration conf) |
boolean |
equals(java.lang.Object obj) |
int |
getAccessLevel() |
java.lang.String |
getCardUri() |
long[] |
getContributors()
Returns an array of contributors, or null if no contributor is associated with this status.
|
java.util.Date |
getCreatedAt()
Return the created_at
|
long |
getCurrentUserRetweetId()
Returns the authenticating user's retweet's id of this tweet, or -1L when the tweet was created
before this feature was enabled.
|
java.lang.String[] |
getDisplayTextRange() |
MediaEntity[] |
getExtendedMediaEntities() |
Status |
getExtendedTweet() |
long |
getFavoriteCount()
Returns the number of times this tweet has been marked favorited.
|
java.lang.String |
getFullText() |
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.
|
java.lang.Boolean |
getHierarchicalMessage() |
java.lang.String |
getHierarchicalMessageId() |
long |
getId()
Returns the id of the status
|
java.lang.String |
getIdStr() |
java.lang.String |
getInReplyToScreenName()
Returns the in_reply_to_screen_name
|
long |
getInReplyToStatusId()
Returns the in_reply_to_status_id
|
java.lang.String |
getInReplyToStatusIdStr() |
long |
getInReplyToUserId()
Returns the in_reply_to_user_id
|
java.lang.String |
getInReplyToUserIdStr() |
java.lang.String |
getLanguage()
Restricts tweets to the given language, given by an ISO 639-1 code.
|
MediaEntity[] |
getMediaEntities()
Returns an array of MediaEntities if medias are available in the tweet, or null if no media is included in the tweet.
|
Place |
getPlace()
Returns the place attached to this status
|
java.lang.String[] |
getPlaceIds()
Refer: https://dev.twitter.com/docs/api/advertising/tweet-delivery-by-country for more details.
|
Status |
getQuotedStatus() |
long |
getQuotedStatusId() |
java.lang.String |
getQuotedStatusIdStr() |
RateLimitStatus |
getRateLimitStatus()
Returns the current rate limit status if available.
|
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() |
TweetScope |
getScopes() |
java.lang.String |
getSource()
Returns the source
|
java.lang.String |
getText()
Returns the text of the status
|
java.lang.String |
getUnEscapedText()
Returns the number of times this tweet has been marked favorited.
|
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() |
boolean |
isFavorited()
Test if the status is favorited
|
boolean |
isPossiblySensitive()
Returns true if the status contains a link that is identified as sensitive.
|
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
|
static ResponseList<Status> |
parseStatuses(Configuration conf,
JSONArray list) |
void |
setCardUri(java.lang.String cardUri) |
void |
setHierarchicalMessage(java.lang.Boolean hierarchicalMessage) |
void |
setHierarchicalMessageId(java.lang.String statusId) |
void |
setPlaceIds(java.lang.String[] placeIds) |
void |
setScopes(TweetScope scopes) |
java.lang.String |
toString() |
getJSONObject, getRawJSONclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatusgetJSONObject, getRawJSONpublic StatusJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionpublic static ResponseList<Status> createStatusList(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionpublic static ResponseList<Status> parseStatuses(Configuration conf, JSONArray list) throws JSONException, TwitterException
JSONExceptionTwitterExceptionpublic java.util.Date getCreatedAt()
getCreatedAt in interface Statuspublic long getId()
public java.lang.String getFullText()
getFullText in interface Statuspublic java.lang.String[] getDisplayTextRange()
getDisplayTextRange in interface Statuspublic Status getExtendedTweet()
getExtendedTweet in interface Statuspublic java.lang.String getText()
public java.lang.String getUnEscapedText()
StatusgetUnEscapedText in interface Statuspublic java.lang.String getLanguage()
StatusgetLanguage in interface Statuspublic java.lang.String getSource()
public boolean isTruncated()
isTruncated in interface Statuspublic long getInReplyToStatusId()
getInReplyToStatusId in interface Statuspublic long getInReplyToUserId()
getInReplyToUserId in interface Statuspublic java.lang.String getInReplyToScreenName()
getInReplyToScreenName in interface Statuspublic GeoLocation getGeoLocation()
getGeoLocation in interface Statuspublic Place getPlace()
public long[] getContributors()
getContributors in interface Statuspublic boolean isFavorited()
isFavorited in interface Statuspublic User getUser()
public Status getRetweetedStatus()
getRetweetedStatus in interface Statuspublic Status getQuotedStatus()
getQuotedStatus in interface Statuspublic long getQuotedStatusId()
getQuotedStatusId in interface Statuspublic java.lang.String getQuotedStatusIdStr()
getQuotedStatusIdStr in interface Statuspublic long getRetweetCount()
getRetweetCount in interface Statuspublic long getFavoriteCount()
getFavoriteCount in interface Statuspublic boolean isRetweetedByMe()
isRetweetedByMe in interface Statuspublic long getCurrentUserRetweetId()
getCurrentUserRetweetId in interface Statuspublic boolean isPossiblySensitive()
isPossiblySensitive in interface Statuspublic UserMentionEntity[] getUserMentionEntities()
getUserMentionEntities in interface EntitySupportpublic URLEntity[] getURLEntities()
getURLEntities in interface EntitySupportpublic HashtagEntity[] getHashtagEntities()
getHashtagEntities in interface EntitySupportpublic MediaEntity[] getMediaEntities()
getMediaEntities in interface EntitySupportpublic MediaEntity[] getExtendedMediaEntities()
getExtendedMediaEntities in interface EntitySupportpublic java.lang.String[] getPlaceIds()
StatusgetPlaceIds in interface Statuspublic int compareTo(Status that)
compareTo in interface java.lang.Comparable<Status>public void setPlaceIds(java.lang.String[] placeIds)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getInReplyToUserIdStr()
getInReplyToUserIdStr in interface Statuspublic java.lang.String getInReplyToStatusIdStr()
getInReplyToStatusIdStr in interface Statuspublic TweetScope getScopes()
public void setScopes(TweetScope scopes)
public java.lang.Boolean getHierarchicalMessage()
getHierarchicalMessage in interface Statuspublic void setHierarchicalMessage(java.lang.Boolean hierarchicalMessage)
setHierarchicalMessage in interface Statuspublic java.lang.String getHierarchicalMessageId()
getHierarchicalMessageId in interface Statuspublic void setHierarchicalMessageId(java.lang.String statusId)
setHierarchicalMessageId in interface Statuspublic java.lang.String getCardUri()
getCardUri in interface Statuspublic void setCardUri(java.lang.String cardUri)
public java.lang.String toString()
toString in class java.lang.Objectpublic RateLimitStatus getRateLimitStatus()
getRateLimitStatus in interface TwitterResponsepublic int getAccessLevel()
getAccessLevel in interface TwitterResponse