twitter4j
Interface User

All Superinterfaces:
java.io.Serializable, TwitterResponse
All Known Implementing Classes:
UserJSONImpl

public interface User
extends TwitterResponse, java.io.Serializable

A data interface representing Basic user information element

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
REST API Documentation - Basic user information element

Method Summary
 java.util.Date getCreatedAt()
           
 java.lang.String getDescription()
          Returns the description of the user
 int getFavouritesCount()
           
 int getFollowersCount()
          Returns the number of followers
 int getFriendsCount()
           
 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.lang.String getProfileBackgroundColor()
           
 java.lang.String getProfileBackgroundImageUrl()
           
 java.net.URL getProfileImageURL()
          Returns the profile image url of the user
 java.lang.String getProfileLinkColor()
           
 java.lang.String getProfileSidebarBorderColor()
           
 java.lang.String getProfileSidebarFillColor()
           
 java.lang.String getProfileTextColor()
           
 java.lang.String getScreenName()
          Returns the screen name of the user
 java.util.Date getStatusCreatedAt()
           
 int getStatusesCount()
           
 long getStatusId()
           
 java.lang.String getStatusInReplyToScreenName()
           
 long getStatusInReplyToStatusId()
           
 int getStatusInReplyToUserId()
           
 java.lang.String getStatusSource()
           
 java.lang.String getStatusText()
           
 java.lang.String getTimeZone()
           
 java.net.URL getURL()
          Returns the url of the user
 int getUtcOffset()
           
 boolean isGeoEnabled()
           
 boolean isProfileBackgroundTiled()
           
 boolean isProtected()
          Test if the user status is protected
 boolean isStatusFavorited()
           
 boolean isStatusTruncated()
           
 boolean isVerified()
           
 
Methods inherited from interface twitter4j.TwitterResponse
getRateLimitStatus
 

Method Detail

getId

int getId()
Returns the id of the user

Returns:
the id of the user

getName

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

Returns:
the name of the user

getScreenName

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

Returns:
the screen name of the user

getLocation

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

Returns:
the location of the user

getDescription

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

Returns:
the description of the user

getProfileImageURL

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

Returns:
the profile image url of the user

getURL

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

Returns:
the url of the user

isProtected

boolean isProtected()
Test if the user status is protected

Returns:
true if the user status is protected

getFollowersCount

int getFollowersCount()
Returns the number of followers

Returns:
the number of followers
Since:
Twitter4J 1.0.4

getStatusCreatedAt

java.util.Date getStatusCreatedAt()
Returns:
created_at or null if the user is protected
Since:
Twitter4J 1.1.0

getStatusId

long getStatusId()
Returns:
status id or -1 if the user is protected

getStatusText

java.lang.String getStatusText()
Returns:
status text or null if the user is protected

getStatusSource

java.lang.String getStatusSource()
Returns:
source or null if the user is protected
Since:
1.1.4

isStatusTruncated

boolean isStatusTruncated()
Returns:
truncated or false if the user is protected
Since:
1.1.4

getStatusInReplyToStatusId

long getStatusInReplyToStatusId()
Returns:
in_reply_to_status_id or -1 if the user is protected
Since:
1.1.4

getStatusInReplyToUserId

int getStatusInReplyToUserId()
Returns:
in_reply_to_user_id or -1 if the user is protected
Since:
1.1.4

isStatusFavorited

boolean isStatusFavorited()
Returns:
favorited or false if the user is protected
Since:
1.1.4

getStatusInReplyToScreenName

java.lang.String getStatusInReplyToScreenName()
Returns:
in_reply_to_screen_name or null if the user is protected
Since:
1.1.4

getProfileBackgroundColor

java.lang.String getProfileBackgroundColor()

getProfileTextColor

java.lang.String getProfileTextColor()

getProfileLinkColor

java.lang.String getProfileLinkColor()

getProfileSidebarFillColor

java.lang.String getProfileSidebarFillColor()

getProfileSidebarBorderColor

java.lang.String getProfileSidebarBorderColor()

getFriendsCount

int getFriendsCount()

getCreatedAt

java.util.Date getCreatedAt()

getFavouritesCount

int getFavouritesCount()

getUtcOffset

int getUtcOffset()

getTimeZone

java.lang.String getTimeZone()

getProfileBackgroundImageUrl

java.lang.String getProfileBackgroundImageUrl()

isProfileBackgroundTiled

boolean isProfileBackgroundTiled()

getStatusesCount

int getStatusesCount()

isGeoEnabled

boolean isGeoEnabled()
Returns:
the user is enabling geo location
Since:
Twitter4J 2.0.10

isVerified

boolean isVerified()
Returns:
returns true if the user is a verified celebrity
Since:
Twitter4J 2.0.10