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

Constructor Summary
Status(java.lang.String str)
           
 
Method Summary
 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()
           
 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
 

Constructor Detail

Status

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

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

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


Copyright © 2009. All Rights Reserved.