final class StatusJSONImpl extends TwitterResponseImpl implements Status, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private long[] |
contributorsIDs |
private java.util.Date |
createdAt |
private long |
currentUserRetweetId |
private int |
favoriteCount |
private GeoLocation |
geoLocation |
private HashtagEntity[] |
hashtagEntities |
private long |
id |
private java.lang.String |
inReplyToScreenName |
private long |
inReplyToStatusId |
private long |
inReplyToUserId |
private boolean |
isFavorited |
private java.lang.String |
isoLanguageCode |
private boolean |
isPossiblySensitive |
private boolean |
isRetweeted |
private boolean |
isTruncated |
private java.lang.String |
lang |
private static Logger |
logger |
private MediaEntity[] |
mediaEntities |
private Place |
place |
private long |
retweetCount |
private Status |
retweetedStatus |
private Scopes |
scopes |
private static long |
serialVersionUID |
private java.lang.String |
source |
private SymbolEntity[] |
symbolEntities |
private java.lang.String |
text |
private URLEntity[] |
urlEntities |
private User |
user |
private UserMentionEntity[] |
userMentionEntities |
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
StatusJSONImpl() |
StatusJSONImpl(HttpResponse res,
Configuration conf) |
StatusJSONImpl(JSONObject json) |
StatusJSONImpl(JSONObject json,
Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Status that) |
(package private) static ResponseList<Status> |
createStatusList(HttpResponse res,
Configuration conf) |
boolean |
equals(java.lang.Object obj) |
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.
|
int |
getFavoriteCount()
Indicates approximately how many times this Tweet has been "favorited" by Twitter users.
|
GeoLocation |
getGeoLocation()
Returns The location that this tweet refers to if available.
|
HashtagEntity[] |
getHashtagEntities()
Returns an array if hashtag mentioned in the tweet.
|
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
|
java.lang.String |
getLang()
Returns the lang of the status text if available.
|
MediaEntity[] |
getMediaEntities()
Returns an array of MediaEntities if medias are available in the tweet.
|
Place |
getPlace()
Returns the place attached to this status
|
int |
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() |
Scopes |
getScopes()
Returns the targeting scopes applied to a status.
|
java.lang.String |
getSource()
Returns the source
|
SymbolEntity[] |
getSymbolEntities()
Returns an array of SymbolEntities if medias are available in the tweet.
|
java.lang.String |
getText()
Returns the text of the status
|
URLEntity[] |
getURLEntities()
Returns an array if URLEntity mentioned in the tweet.
|
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.
|
int |
hashCode() |
private void |
init(JSONObject json) |
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 |
isRetweeted()
Test if the status is retweeted
|
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() |
getAccessLevel, getRateLimitStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatusprivate static final 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 boolean isRetweeted
private int favoriteCount
private java.lang.String inReplyToScreenName
private GeoLocation geoLocation
private Place place
private long retweetCount
private boolean isPossiblySensitive
private java.lang.String isoLanguageCode
private java.lang.String lang
private long[] contributorsIDs
private Status retweetedStatus
private UserMentionEntity[] userMentionEntities
private URLEntity[] urlEntities
private HashtagEntity[] hashtagEntities
private MediaEntity[] mediaEntities
private SymbolEntity[] symbolEntities
private long currentUserRetweetId
private Scopes scopes
private User user
StatusJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionStatusJSONImpl(JSONObject json, Configuration conf) throws TwitterException
TwitterExceptionStatusJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionStatusJSONImpl()
private void init(JSONObject json) throws TwitterException
TwitterExceptionpublic int compareTo(Status that)
compareTo in interface java.lang.Comparable<Status>public java.util.Date getCreatedAt()
getCreatedAt in interface Statuspublic long getId()
public java.lang.String getText()
public 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 boolean isRetweeted()
isRetweeted in interface Statuspublic int getFavoriteCount()
getFavoriteCount in interface Statuspublic User getUser()
public Status getRetweetedStatus()
getRetweetedStatus in interface Statuspublic int getRetweetCount()
getRetweetCount 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 SymbolEntity[] getSymbolEntities()
getSymbolEntities in interface EntitySupportpublic Scopes getScopes()
public java.lang.String getLang()
static ResponseList<Status> createStatusList(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object