twitter4j
Class Status

java.lang.Object
  extended by twitter4j.TwitterResponse
      extended by twitter4j.Status
All Implemented Interfaces:
java.io.Serializable

public class Status
extends TwitterResponse
implements java.io.Serializable

A data class representing one single status of a user.

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
Serialized Form

Field Summary
private  java.util.Date createdAt
           
private  long id
           
private  java.lang.String inReplyToScreenName
           
private  long inReplyToStatusId
           
private  int inReplyToUserId
           
private  boolean isFavorited
           
private  boolean isTruncated
           
private  double latitude
           
private  double longitude
           
private  RetweetDetails retweetDetails
           
private static long serialVersionUID
           
private  java.lang.String source
           
private  java.lang.String text
           
private  User user
           
 
Constructor Summary
Status(twitter4j.http.Response res, org.w3c.dom.Element elem, Twitter twitter)
           
Status(twitter4j.http.Response res, Twitter twitter)
           
Status(java.lang.String str)
           
 
Method Summary
(package private) static java.util.List<Status> constructStatuses(twitter4j.http.Response res, Twitter twitter)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getCreatedAt()
          Return the created_at
 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
 int getInReplyToUserId()
          Returns the in_reply_user_id
 double getLatitude()
          returns The location's latitude that this tweet refers to.
 double getLongitude()
          returns The location's longitude that this tweet refers to.
 RetweetDetails getRetweetDetails()
           
 java.lang.String getSource()
          Returns the source
 java.lang.String getText()
          Returns the text of the status
 User getUser()
          Return the user
 int hashCode()
           
private  void init(twitter4j.http.Response res, org.w3c.dom.Element elem, Twitter twitter)
           
 boolean isFavorited()
          Test if the status is favorited
 boolean isRetweet()
           
 boolean isTruncated()
          Test if the status is truncated
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponse
ensureRootNodeNameIs, ensureRootNodeNameIs, ensureRootNodeNameIs, getBoolean, getChildBoolean, getChildDate, getChildDate, getChildInt, getChildLong, getChildText, getInt, getLong, getRateLimitLimit, getRateLimitRemaining, getRateLimitReset, getString, getTextContent, isRootNodeNilClasses, parseDate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

createdAt

private java.util.Date createdAt

id

private long id

text

private java.lang.String text

source

private java.lang.String source

isTruncated

private boolean isTruncated

inReplyToStatusId

private long inReplyToStatusId

inReplyToUserId

private int inReplyToUserId

isFavorited

private boolean isFavorited

inReplyToScreenName

private java.lang.String inReplyToScreenName

latitude

private double latitude

longitude

private double longitude

retweetDetails

private RetweetDetails retweetDetails

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

user

private User user
Constructor Detail

Status

Status(twitter4j.http.Response res,
       Twitter twitter)
 throws TwitterException
Throws:
TwitterException

Status

Status(twitter4j.http.Response res,
       org.w3c.dom.Element elem,
       Twitter twitter)
 throws TwitterException
Throws:
TwitterException

Status

public Status(java.lang.String str)
       throws TwitterException,
              twitter4j.org.json.JSONException
Throws:
TwitterException
twitter4j.org.json.JSONException
Method Detail

init

private void init(twitter4j.http.Response res,
                  org.w3c.dom.Element elem,
                  Twitter twitter)
           throws TwitterException
Throws:
TwitterException

getCreatedAt

public java.util.Date getCreatedAt()
Return the created_at

Returns:
created_at
Since:
Twitter4J 1.1.0

getId

public long getId()
Returns the id of the status

Returns:
the id

getText

public java.lang.String getText()
Returns the text of the status

Returns:
the text

getSource

public java.lang.String getSource()
Returns the source

Returns:
the source
Since:
Twitter4J 1.0.4

isTruncated

public boolean isTruncated()
Test if the status is truncated

Returns:
true if truncated
Since:
Twitter4J 1.0.4

getInReplyToStatusId

public long getInReplyToStatusId()
Returns the in_reply_tostatus_id

Returns:
the in_reply_tostatus_id
Since:
Twitter4J 1.0.4

getInReplyToUserId

public int getInReplyToUserId()
Returns the in_reply_user_id

Returns:
the in_reply_tostatus_id
Since:
Twitter4J 1.0.4

getInReplyToScreenName

public java.lang.String getInReplyToScreenName()
Returns the in_reply_to_screen_name

Returns:
the in_in_reply_to_screen_name
Since:
Twitter4J 2.0.4

getLatitude

public double getLatitude()
returns The location's latitude that this tweet refers to.

Since:
Twitter4J 2.0.10

getLongitude

public double getLongitude()
returns The location's longitude that this tweet refers to.

Since:
Twitter4J 2.0.10

isFavorited

public boolean isFavorited()
Test if the status is favorited

Returns:
true if favorited
Since:
Twitter4J 1.0.4

getUser

public User getUser()
Return the user

Returns:
the user

isRetweet

public boolean isRetweet()
Since:
Twitter4J 2.0.10

getRetweetDetails

public RetweetDetails getRetweetDetails()
Since:
Twitter4J 2.0.10

constructStatuses

static java.util.List<Status> constructStatuses(twitter4j.http.Response res,
                                                Twitter twitter)
                                         throws TwitterException
Throws:
TwitterException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object