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, getRateLimitStatus
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAccessLevel, getRateLimitStatus
private 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
TwitterException
StatusJSONImpl(JSONObject json, Configuration conf) throws TwitterException
TwitterException
StatusJSONImpl(JSONObject json) throws TwitterException
TwitterException
StatusJSONImpl()
private void init(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()
public java.lang.String getText()
public java.lang.String getSource()
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()
public long[] getContributors()
getContributors
in interface Status
public boolean isFavorited()
isFavorited
in interface Status
public boolean isRetweeted()
isRetweeted
in interface Status
public int getFavoriteCount()
getFavoriteCount
in interface Status
public User getUser()
public Status getRetweetedStatus()
getRetweetedStatus
in interface Status
public int getRetweetCount()
getRetweetCount
in interface Status
public boolean isRetweetedByMe()
isRetweetedByMe
in interface Status
public long getCurrentUserRetweetId()
getCurrentUserRetweetId
in interface Status
public boolean isPossiblySensitive()
isPossiblySensitive
in interface Status
public UserMentionEntity[] getUserMentionEntities()
getUserMentionEntities
in interface EntitySupport
public URLEntity[] getURLEntities()
getURLEntities
in interface EntitySupport
public HashtagEntity[] getHashtagEntities()
getHashtagEntities
in interface EntitySupport
public MediaEntity[] getMediaEntities()
getMediaEntities
in interface EntitySupport
public SymbolEntity[] getSymbolEntities()
getSymbolEntities
in interface EntitySupport
public Scopes getScopes()
public java.lang.String getLang()
static ResponseList<Status> createStatusList(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