twitter4j
Class User

java.lang.Object
  extended by twitter4j.TwitterResponse
      extended by twitter4j.User
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UserWithStatus

public class User
extends TwitterResponse
implements java.io.Serializable

A data class representing Twitter User

See Also:
Serialized Form

Method Summary
static java.util.List<User> constructUsers(org.w3c.dom.Document doc, Twitter twitter)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns the description of the user
 int getFollowersCount()
          Returns the number of followers
 int getId()
          Returns the id of the user
 java.lang.String getLocation()
          Returns the location of the user
 java.lang.String getName()
          Returns the name of the user
 java.net.URL getProfileImageURL()
          Returns the profile image url of the user
 java.lang.String getScreenName()
          Returns the screen name of the user
 java.net.URL getURL()
          Returns the url of the user
 int hashCode()
           
 boolean isProtected()
          Test if the user status is protected
 DirectMessage sendDirectMessage(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponse
ensureRootNodeNameIs, ensureRootNodeNameIs, ensureRootNodeNameIs, getChildBoolean, getChildDate, getChildInt, getChildLong, getChildText, isRootNodeNilClasses
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public int getId()
Returns the id of the user

Returns:
the id of the user

getName

public java.lang.String getName()
Returns the name of the user

Returns:
the name of the user

getScreenName

public java.lang.String getScreenName()
Returns the screen name of the user

Returns:
the screen name of the user

getLocation

public java.lang.String getLocation()
Returns the location of the user

Returns:
the location of the user

getDescription

public java.lang.String getDescription()
Returns the description of the user

Returns:
the description of the user

getProfileImageURL

public java.net.URL getProfileImageURL()
Returns the profile image url of the user

Returns:
the profile image url of the user

getURL

public java.net.URL getURL()
Returns the url of the user

Returns:
the url of the user

isProtected

public boolean isProtected()
Test if the user status is protected

Returns:
true if the user status is protected

getFollowersCount

public int getFollowersCount()
Returns the number of followers

Returns:
the number of followers
Since:
twitter4j 1.0.4

sendDirectMessage

public DirectMessage sendDirectMessage(java.lang.String text)
                                throws TwitterException
Throws:
TwitterException

constructUsers

public static java.util.List<User> constructUsers(org.w3c.dom.Document doc,
                                                  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