twitter4j
Interface User

All Superinterfaces:
Comparable<User>, Serializable, TwitterResponse

public interface User
extends Comparable<User>, TwitterResponse, Serializable

A data interface representing Basic user information element

Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
 
Fields inherited from interface twitter4j.TwitterResponse
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES
 
Method Summary
 Date getCreatedAt()
           
 String getDescription()
          Returns the description of the user
 int getFavouritesCount()
           
 int getFollowersCount()
          Returns the number of followers
 int getFriendsCount()
           
 long getId()
          Returns the id of the user
 String getLang()
          Returns the preferred language of the user
 int getListedCount()
          Returns the number of public lists the user is listed on, or -1 if the count is unavailable.
 String getLocation()
          Returns the location of the user
 String getName()
          Returns the name of the user
 String getProfileBackgroundColor()
           
 String getProfileBackgroundImageUrl()
           
 String getProfileBackgroundImageUrlHttps()
           
 URL getProfileImageURL()
          Returns the profile image url of the user
 URL getProfileImageUrlHttps()
          Returns the profile image url of the user, served over SSL
 String getProfileLinkColor()
           
 String getProfileSidebarBorderColor()
           
 String getProfileSidebarFillColor()
           
 String getProfileTextColor()
           
 String getScreenName()
          Returns the screen name of the user
 Status getStatus()
          Returns the current status of the user
This can be null if the instance if from Status.getUser().
 int getStatusesCount()
           
 String getTimeZone()
           
 URL getURL()
          Returns the url of the user
 int getUtcOffset()
           
 boolean isContributorsEnabled()
          Tests if the user is enabling contributors
 boolean isFollowRequestSent()
          Returns true if the authenticating user has requested to follow this user, otherwise false.
 boolean isGeoEnabled()
           
 boolean isProfileBackgroundTiled()
           
 boolean isProfileUseBackgroundImage()
           
 boolean isProtected()
          Test if the user status is protected
 boolean isShowAllInlineMedia()
           
 boolean isTranslator()
           
 boolean isVerified()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface twitter4j.TwitterResponse
getAccessLevel, getRateLimitStatus
 

Method Detail

getId

long getId()
Returns the id of the user

Returns:
the id of the user

getName

String getName()
Returns the name of the user

Returns:
the name of the user

getScreenName

String getScreenName()
Returns the screen name of the user

Returns:
the screen name of the user

getLocation

String getLocation()
Returns the location of the user

Returns:
the location of the user

getDescription

String getDescription()
Returns the description of the user

Returns:
the description of the user

isContributorsEnabled

boolean isContributorsEnabled()
Tests if the user is enabling contributors

Returns:
if the user is enabling contributors
Since:
Twitter4J 2.1.2

getProfileImageURL

URL getProfileImageURL()
Returns the profile image url of the user

Returns:
the profile image url of the user

getProfileImageUrlHttps

URL getProfileImageUrlHttps()
Returns the profile image url of the user, served over SSL

Returns:
the profile image url of the user, served over SSL

getURL

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

getStatus

Status getStatus()
Returns the current status of the user
This can be null if the instance if from Status.getUser().

Returns:
current status of the user
Since:
Twitter4J 2.1.1

getProfileBackgroundColor

String getProfileBackgroundColor()

getProfileTextColor

String getProfileTextColor()

getProfileLinkColor

String getProfileLinkColor()

getProfileSidebarFillColor

String getProfileSidebarFillColor()

getProfileSidebarBorderColor

String getProfileSidebarBorderColor()

isProfileUseBackgroundImage

boolean isProfileUseBackgroundImage()

isShowAllInlineMedia

boolean isShowAllInlineMedia()

getFriendsCount

int getFriendsCount()

getCreatedAt

Date getCreatedAt()

getFavouritesCount

int getFavouritesCount()

getUtcOffset

int getUtcOffset()

getTimeZone

String getTimeZone()

getProfileBackgroundImageUrl

String getProfileBackgroundImageUrl()

getProfileBackgroundImageUrlHttps

String getProfileBackgroundImageUrlHttps()

isProfileBackgroundTiled

boolean isProfileBackgroundTiled()

getLang

String getLang()
Returns the preferred language of the user

Returns:
the preferred language of the user
Since:
Twitter4J 2.1.2

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

isTranslator

boolean isTranslator()
Returns:
returns true if the user is a translator
Since:
Twitter4J 2.1.9

getListedCount

int getListedCount()
Returns the number of public lists the user is listed on, or -1 if the count is unavailable.

Returns:
the number of public lists the user is listed on.
Since:
Twitter4J 2.1.4

isFollowRequestSent

boolean isFollowRequestSent()
Returns true if the authenticating user has requested to follow this user, otherwise false.

Returns:
true if the authenticating user has requested to follow this user.
Since:
Twitter4J 2.1.4


Copyright © 2012. All Rights Reserved.