パッケージ twitter4j.v1
インタフェース Status
- すべてのスーパーインタフェース:
Comparable<Status>
,EntitySupport
,Serializable
,TwitterResponse
A data interface representing one single status of a user.
(e.g. https://dev.twitter.com/rest/reference/get/statuses/show/%3Aid)
-
ネストされたクラスの概要
インタフェースから継承されたネストされたクラス/インタフェース twitter4j.TwitterResponse
TwitterResponse.AccessLevel
-
メソッドの概要
修飾子とタイプメソッド説明long[]
Returns an array of contributors, or null if no contributor is associated with this status.Return the created_atlong
Returns the authenticating user's retweet's id of this tweet, or -1L when the tweet was created before this feature was enabled.int
int
int
Indicates approximately how many times this Tweet has been "favorited" by Twitter users.Returns The location that this tweet refers to if available.long
getId()
Returns the id of the statusReturns the in_reply_to_screen_namelong
Returns the in_reply_tostatus_idlong
Returns the in_reply_user_idgetLang()
Returns the lang of the status text if available.getPlace()
Returns the place attached to this statusReturns the Tweet object of the original Tweet that was quoted.long
Returns the Tweet ID of the quoted TweetReturns the URLEntity object that represents the permalink of the quoted Tweet.int
Returns the number of times this tweet has been retweeted, or -1 when the tweet was created before this feature was enabled.Returns the targeting scopes applied to a status.Returns the sourcegetText()
Returns the text of the statusgetUser()
Return the user associated with the status.
This can be null if the instance is from User.getStatus().String[]
Returns the list of country codes where the tweet is withheldboolean
Test if the status is favoritedboolean
Returns true if the status contains a link that is identified as sensitive.boolean
boolean
Test if the status is retweetedboolean
Returns true if the authenticating user has retweeted this tweet, or false when the tweet was created before this feature was enabled.boolean
Test if the status is truncatedインタフェースから継承されたメソッド java.lang.Comparable
compareTo
インタフェースから継承されたメソッド twitter4j.v1.EntitySupport
getHashtagEntities, getMediaEntities, getSymbolEntities, getURLEntities, getUserMentionEntities
インタフェースから継承されたメソッド twitter4j.TwitterResponse
getAccessLevel, getRateLimitStatus
-
メソッドの詳細
-
getCreatedAt
LocalDateTime getCreatedAt()Return the created_at- 戻り値:
- created_at
- 導入されたバージョン:
- Twitter4J 1.1.0
-
getId
long getId()Returns the id of the status- 戻り値:
- the id (e.g. 210462857140252672)
-
getText
String getText()Returns the text of the status- 戻り値:
- the text (e.g. Along with our new #Twitterbird, we've also updated our Display Guidelines: https://t.co/Ed4omjYs ^JC)
-
getDisplayTextRangeStart
int getDisplayTextRangeStart()- 戻り値:
- display text range end
-
getDisplayTextRangeEnd
int getDisplayTextRangeEnd()- 戻り値:
- display text range end
-
getSource
String getSource()Returns the source- 戻り値:
- the source (e.g. <a href="http://twitter.com" rel="nofollow">Twitter Web Client</a>)
- 導入されたバージョン:
- Twitter4J 1.0.4
-
isTruncated
boolean isTruncated()Test if the status is truncated- 戻り値:
- true if truncated
- 導入されたバージョン:
- Twitter4J 1.0.4
-
getInReplyToStatusId
long getInReplyToStatusId()Returns the in_reply_tostatus_id- 戻り値:
- the in_reply_tostatus_id
- 導入されたバージョン:
- Twitter4J 1.0.4
-
getInReplyToUserId
long getInReplyToUserId()Returns the in_reply_user_id- 戻り値:
- the in_reply_tostatus_id
- 導入されたバージョン:
- Twitter4J 1.0.4
-
getInReplyToScreenName
String getInReplyToScreenName()Returns the in_reply_to_screen_name- 戻り値:
- the in_in_reply_to_screen_name
- 導入されたバージョン:
- Twitter4J 2.0.4
-
getGeoLocation
GeoLocation getGeoLocation()Returns The location that this tweet refers to if available.- 戻り値:
- returns The location that this tweet refers to if available (can be null)
- 導入されたバージョン:
- Twitter4J 2.1.0
-
getPlace
Place getPlace()Returns the place attached to this status- 戻り値:
- The place attached to this status
- 導入されたバージョン:
- Twitter4J 2.1.1
-
isFavorited
boolean isFavorited()Test if the status is favorited- 戻り値:
- true if favorited
- 導入されたバージョン:
- Twitter4J 1.0.4
-
isRetweeted
boolean isRetweeted()Test if the status is retweeted- 戻り値:
- true if retweeted
- 導入されたバージョン:
- Twitter4J 3.0.4
-
getFavoriteCount
int getFavoriteCount()Indicates approximately how many times this Tweet has been "favorited" by Twitter users.- 戻り値:
- the favorite count
- 導入されたバージョン:
- Twitter4J 3.0.4
-
getUser
User getUser()Return the user associated with the status.
This can be null if the instance is from User.getStatus().- 戻り値:
- the user
-
isRetweet
boolean isRetweet()- 戻り値:
- if the status is retweet or not
- 導入されたバージョン:
- Twitter4J 2.0.10
-
getRetweetedStatus
Status getRetweetedStatus()- 戻り値:
- retweeted status
- 導入されたバージョン:
- Twitter4J 2.1.0
-
getContributors
long[] getContributors()Returns an array of contributors, or null if no contributor is associated with this status.- 戻り値:
- contributors
- 導入されたバージョン:
- Twitter4J 2.2.3
-
getRetweetCount
int getRetweetCount()Returns the number of times this tweet has been retweeted, or -1 when the tweet was created before this feature was enabled.- 戻り値:
- the retweet count.
-
isRetweetedByMe
boolean isRetweetedByMe()Returns true if the authenticating user has retweeted this tweet, or false when the tweet was created before this feature was enabled.- 戻り値:
- whether the authenticating user has retweeted this tweet.
- 導入されたバージョン:
- Twitter4J 2.1.4
-
getCurrentUserRetweetId
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.- 戻り値:
- the authenticating user's retweet's id of this tweet
- 導入されたバージョン:
- Twitter4J 3.0.1
-
isPossiblySensitive
boolean isPossiblySensitive()Returns true if the status contains a link that is identified as sensitive.- 戻り値:
- whether the status contains sensitive links
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getLang
String getLang()Returns the lang of the status text if available.- 戻り値:
- two-letter iso language code (e.g. en)
- 導入されたバージョン:
- Twitter4J 3.0.6
-
getScopes
Scopes getScopes()Returns the targeting scopes applied to a status.- 戻り値:
- the targeting scopes applied to a status.
- 導入されたバージョン:
- Twitter4J 3.0.6
-
getWithheldInCountries
String[] getWithheldInCountries()Returns the list of country codes where the tweet is withheld- 戻り値:
- array of country codes where the tweet is withheld - null if not withheld
- 導入されたバージョン:
- Twitter4j 4.0.3
-
getQuotedStatusId
long getQuotedStatusId()Returns the Tweet ID of the quoted Tweet- 戻り値:
- the Tweet ID of the quoted Tweet
- 導入されたバージョン:
- Twitter4J 4.0.4
-
getQuotedStatus
Status getQuotedStatus()Returns the Tweet object of the original Tweet that was quoted.- 戻り値:
- the quoted Tweet object
- 導入されたバージョン:
- Twitter4J 4.0.4
-
getQuotedStatusPermalink
URLEntity getQuotedStatusPermalink()Returns the URLEntity object that represents the permalink of the quoted Tweet.Note that "text" and an indices of "start", "end" are not provided.
- 戻り値:
- the URLEntity object that represents the permalink of the quoted Tweet. - null if not presents
- 導入されたバージョン:
- Twitter4J 4.0.7
-