public class PromotedTweet extends java.lang.Object implements Status
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
PromotedTweet() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Status otherStatus) |
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() |
JSONObject |
getJSONObject()
Returns the underlying JSON response object
|
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.
|
java.lang.String |
getRawJSON()
Json string representation of underlying object.
|
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.
|
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
|
void |
setHierarchicalMessage(java.lang.Boolean hierarchicalMessage) |
void |
setHierarchicalMessageId(java.lang.String statusId) |
void |
setId(java.lang.Long id) |
void |
setIdStr(java.lang.String idStr) |
void |
setLanguage(java.lang.String language) |
void |
setSource(java.lang.String source) |
void |
setText(java.lang.String text) |
void |
setTruncated(boolean truncated) |
public java.util.Date getCreatedAt()
StatusgetCreatedAt in interface Statuspublic long getId()
Statuspublic java.lang.String getText()
Statuspublic java.lang.String getLanguage()
StatusgetLanguage in interface Statuspublic java.lang.String getUnEscapedText()
StatusgetUnEscapedText in interface Statuspublic java.lang.String getSource()
Statuspublic boolean isTruncated()
StatusisTruncated in interface Statuspublic long getInReplyToStatusId()
StatusgetInReplyToStatusId in interface Statuspublic long getInReplyToUserId()
StatusgetInReplyToUserId in interface Statuspublic java.lang.String getInReplyToScreenName()
StatusgetInReplyToScreenName in interface Statuspublic GeoLocation getGeoLocation()
StatusgetGeoLocation in interface Statuspublic Place getPlace()
Statuspublic boolean isFavorited()
StatusisFavorited in interface Statuspublic java.lang.String getInReplyToUserIdStr()
getInReplyToUserIdStr in interface Statuspublic java.lang.String getInReplyToStatusIdStr()
getInReplyToStatusIdStr in interface Statuspublic TweetScope getScopes()
public User getUser()
Statuspublic 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 java.lang.String getFullText()
getFullText in interface Statuspublic java.lang.String[] getDisplayTextRange()
getDisplayTextRange in interface Statuspublic Status getExtendedTweet()
getExtendedTweet in interface Statuspublic long[] getContributors()
StatusgetContributors in interface Statuspublic long getRetweetCount()
StatusgetRetweetCount in interface Statuspublic long getFavoriteCount()
StatusgetFavoriteCount in interface Statuspublic boolean isRetweetedByMe()
StatusisRetweetedByMe in interface Statuspublic long getCurrentUserRetweetId()
StatusgetCurrentUserRetweetId in interface Statuspublic boolean isPossiblySensitive()
StatusisPossiblySensitive in interface Statuspublic java.lang.String[] getPlaceIds()
StatusgetPlaceIds in interface Statuspublic void setHierarchicalMessage(java.lang.Boolean hierarchicalMessage)
setHierarchicalMessage in interface Statuspublic java.lang.Boolean getHierarchicalMessage()
getHierarchicalMessage in interface Statuspublic java.lang.String getHierarchicalMessageId()
getHierarchicalMessageId in interface Statuspublic void setHierarchicalMessageId(java.lang.String statusId)
setHierarchicalMessageId in interface Statuspublic int compareTo(Status otherStatus)
compareTo in interface java.lang.Comparable<Status>public UserMentionEntity[] getUserMentionEntities()
EntitySupportgetUserMentionEntities in interface EntitySupportpublic URLEntity[] getURLEntities()
EntitySupportgetURLEntities in interface EntitySupportpublic HashtagEntity[] getHashtagEntities()
EntitySupportgetHashtagEntities in interface EntitySupportpublic MediaEntity[] getMediaEntities()
EntitySupportgetMediaEntities in interface EntitySupportpublic MediaEntity[] getExtendedMediaEntities()
getExtendedMediaEntities in interface EntitySupportpublic JSONObject getJSONObject()
JSONResponsegetJSONObject in interface JSONResponsepublic java.lang.String getRawJSON()
JSONResponsegetRawJSON in interface JSONResponsepublic RateLimitStatus getRateLimitStatus()
TwitterResponsegetRateLimitStatus in interface TwitterResponsepublic int getAccessLevel()
getAccessLevel in interface TwitterResponsepublic java.lang.String getCardUri()
getCardUri in interface Statuspublic void setId(java.lang.Long id)
public void setIdStr(java.lang.String idStr)
public void setText(java.lang.String text)
public void setSource(java.lang.String source)
public void setTruncated(boolean truncated)
public void setLanguage(java.lang.String language)