twitter4j
Interface Status

All Superinterfaces:
Comparable<Status>, EntitySupport, Serializable, TwitterResponse, Twt

public interface Status
extends Comparable<Status>, TwitterResponse, EntitySupport, Twt, Serializable

A data interface representing one single status of a user.

Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
 
Fields inherited from interface twitter4j.TwitterResponse
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES
 
Method Summary
 Annotations getAnnotations()
          Deprecated. Annotations is not available for now. Annotations - Twitter Development Talk | Google Groups
 long[] getContributors()
          Returns an array of contributors, or null if no contributor is associated with this status.
 Date getCreatedAt()
          Return the created_at
 GeoLocation getGeoLocation()
          Returns The location that this tweet refers to if available.
 long getId()
          Returns the id of the status
 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
 Place getPlace()
          Returns the place attached to this status
 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()
           
 String getSource()
          Returns the source
 String getText()
          Returns the text of the status
 User getUser()
          Return the user associated with the status.
This can be null if the instance if from User.getStatus().
 boolean isFavorited()
          Test if the status is favorited
 boolean isPossiblySensitive()
          Test if the status contains links that could be 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
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface twitter4j.TwitterResponse
getAccessLevel, getRateLimitStatus
 
Methods inherited from interface twitter4j.EntitySupport
getHashtagEntities, getMediaEntities, getURLEntities, getUserMentionEntities
 

Method Detail

getCreatedAt

Date getCreatedAt()
Return the created_at

Specified by:
getCreatedAt in interface Twt
Returns:
created_at
Since:
Twitter4J 1.1.0

getId

long getId()
Returns the id of the status

Specified by:
getId in interface Twt
Returns:
the id

getText

String getText()
Returns the text of the status

Specified by:
getText in interface Twt
Returns:
the text

getSource

String getSource()
Returns the source

Specified by:
getSource in interface Twt
Returns:
the source
Since:
Twitter4J 1.0.4

isTruncated

boolean isTruncated()
Test if the status is truncated

Returns:
true if truncated
Since:
Twitter4J 1.0.4

isPossiblySensitive

boolean isPossiblySensitive()
Test if the status contains links that could be sensitive

Returns:
if the status contains links that could be sensitive
Since:
Twitter4J 2.2.6

getInReplyToStatusId

long getInReplyToStatusId()
Returns the in_reply_tostatus_id

Specified by:
getInReplyToStatusId in interface Twt
Returns:
the in_reply_tostatus_id
Since:
Twitter4J 1.0.4

getInReplyToUserId

long getInReplyToUserId()
Returns the in_reply_user_id

Returns:
the in_reply_tostatus_id
Since:
Twitter4J 1.0.4

getInReplyToScreenName

String getInReplyToScreenName()
Returns the in_reply_to_screen_name

Returns:
the in_in_reply_to_screen_name
Since:
Twitter4J 2.0.4

getGeoLocation

GeoLocation getGeoLocation()
Returns The location that this tweet refers to if available.

Specified by:
getGeoLocation in interface Twt
Returns:
returns The location that this tweet refers to if available (can be null)
Since:
Twitter4J 2.1.0

getPlace

Place getPlace()
Returns the place attached to this status

Specified by:
getPlace in interface Twt
Returns:
The place attached to this status
Since:
Twitter4J 2.1.1

isFavorited

boolean isFavorited()
Test if the status is favorited

Returns:
true if favorited
Since:
Twitter4J 1.0.4

getUser

User getUser()
Return the user associated with the status.
This can be null if the instance if from User.getStatus().

Returns:
the user

isRetweet

boolean isRetweet()
Since:
Twitter4J 2.0.10

getRetweetedStatus

Status getRetweetedStatus()
Since:
Twitter4J 2.1.0

getContributors

long[] getContributors()
Returns an array of contributors, or null if no contributor is associated with this status.

Since:
Twitter4J 2.2.3

getRetweetCount

long getRetweetCount()
Returns the number of times this tweet has been retweeted, or -1 when the tweet was created before this feature was enabled.

Returns:
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.

Returns:
whether the authenticating user has retweeted this tweet.
Since:
Twitter4J 2.1.4

getAnnotations

Annotations getAnnotations()
Deprecated. Annotations is not available for now. Annotations - Twitter Development Talk | Google Groups

Returns the annotations, or null if no annotations are associated with this status.

Since:
Twitter4J 2.1.4


Copyright © 2012. All Rights Reserved.