パッケージ twitter4j.v1
インタフェース User
- すべてのスーパーインタフェース:
Comparable<User>
,Serializable
,TwitterResponse
A data interface representing Basic user information element
-
ネストされたクラスの概要
インタフェースから継承されたネストされたクラス/インタフェース twitter4j.TwitterResponse
TwitterResponse.AccessLevel
-
メソッドの概要
修飾子とタイプメソッド説明Returns the description of the userReturns URL entities for user description.getEmail()
Returns the email of the user, if the app is whitelisted by Twitterint
int
Returns the number of followersint
Returns the number of users the user follows (AKA "followings")long
getId()
Returns the id of the usergetLang()
Returns the preferred language of the userint
Returns the number of public lists the user is listed on, or -1 if the count is unavailable.Returns the location of the usergetName()
Returns the name of the userReturns the profile image url of the userReturns the screen name of the userReturns the current status of the user
This can be null if the instance if from Status.getUser().int
getURL()
Returns the url of the userReturns URL entity for user's URL.int
String[]
Returns the list of country codes where the user is withheldboolean
Tests if the user is enabling contributorsboolean
Tests if the user has not altered the theme or backgroundboolean
Tests if the user has not uploaded their own avatarboolean
Returns true if the authenticating user has requested to follow this user, otherwise false.boolean
boolean
boolean
boolean
Test if the user status is protectedboolean
boolean
boolean
インタフェースから継承されたメソッド java.lang.Comparable
compareTo
インタフェースから継承されたメソッド twitter4j.TwitterResponse
getAccessLevel, getRateLimitStatus
-
メソッドの詳細
-
getId
long getId()Returns the id of the user- 戻り値:
- the id of the user
-
getName
String getName()Returns the name of the user- 戻り値:
- the name of the user
-
getEmail
String getEmail()Returns the email of the user, if the app is whitelisted by Twitter- 戻り値:
- the email of the user
-
getScreenName
String getScreenName()Returns the screen name of the user- 戻り値:
- the screen name of the user
-
getLocation
String getLocation()Returns the location of the user- 戻り値:
- the location of the user
-
getDescription
String getDescription()Returns the description of the user- 戻り値:
- the description of the user
-
isContributorsEnabled
boolean isContributorsEnabled()Tests if the user is enabling contributors- 戻り値:
- if the user is enabling contributors
- 導入されたバージョン:
- Twitter4J 2.1.2
-
getProfileImageURL
String getProfileImageURL()Returns the profile image url of the user- 戻り値:
- the profile image url of the user
-
getBiggerProfileImageURL
String getBiggerProfileImageURL()- 戻り値:
- bigger profile image URL
-
getMiniProfileImageURL
String getMiniProfileImageURL()- 戻り値:
- mini profile image URL
-
getOriginalProfileImageURL
String getOriginalProfileImageURL()- 戻り値:
- original profile image URL
-
get400x400ProfileImageURL
String get400x400ProfileImageURL()- 戻り値:
- profile image url
- 導入されたバージョン:
- Twitter4J 4.0.7
-
getProfileImageURLHttps
String getProfileImageURLHttps()- 戻り値:
- profile image URL
-
getBiggerProfileImageURLHttps
String getBiggerProfileImageURLHttps()- 戻り値:
- profile image URL
-
getMiniProfileImageURLHttps
String getMiniProfileImageURLHttps()- 戻り値:
- mini profile image URL
-
getOriginalProfileImageURLHttps
String getOriginalProfileImageURLHttps()- 戻り値:
- original profile image URL
-
get400x400ProfileImageURLHttps
String get400x400ProfileImageURLHttps()- 戻り値:
- profile image url
- 導入されたバージョン:
- Twitter4J 4.0.7
-
isDefaultProfileImage
boolean isDefaultProfileImage()Tests if the user has not uploaded their own avatar- 戻り値:
- if the user has not uploaded their own avatar
-
getURL
String getURL()Returns the url of the user- 戻り値:
- the url of the user
-
isProtected
boolean isProtected()Test if the user status is protected- 戻り値:
- true if the user status is protected
-
getFollowersCount
int getFollowersCount()Returns the number of followers- 戻り値:
- the number of followers
- 導入されたバージョン:
- 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().- 戻り値:
- current status of the user
- 導入されたバージョン:
- Twitter4J 2.1.1
-
getProfileBackgroundColor
String getProfileBackgroundColor()- 戻り値:
- profile background color
-
getProfileTextColor
String getProfileTextColor()- 戻り値:
- profile text color
-
getProfileLinkColor
String getProfileLinkColor()- 戻り値:
- profile link color
-
getProfileSidebarFillColor
String getProfileSidebarFillColor()- 戻り値:
- profile sidebar fill color
-
getProfileSidebarBorderColor
String getProfileSidebarBorderColor()- 戻り値:
- profile sidebar border color
-
isProfileUseBackgroundImage
boolean isProfileUseBackgroundImage()- 戻り値:
- profile use background image
-
isDefaultProfile
boolean isDefaultProfile()Tests if the user has not altered the theme or background- 戻り値:
- if the user has not altered the theme or background
-
isShowAllInlineMedia
boolean isShowAllInlineMedia()- 戻り値:
- show all inline media
-
getFriendsCount
int getFriendsCount()Returns the number of users the user follows (AKA "followings")- 戻り値:
- the number of users the user follows
-
getCreatedAt
LocalDateTime getCreatedAt()- 戻り値:
- created at
-
getFavouritesCount
int getFavouritesCount()- 戻り値:
- favorites count
-
getUtcOffset
int getUtcOffset()- 戻り値:
- UTC offset
-
getTimeZone
String getTimeZone()- 戻り値:
- time zone
-
getProfileBackgroundImageURL
String getProfileBackgroundImageURL()- 戻り値:
- profile background image URL
-
getProfileBackgroundImageUrlHttps
String getProfileBackgroundImageUrlHttps()- 戻り値:
- profile background image URL
-
getProfileBannerURL
String getProfileBannerURL()- 戻り値:
- profile banner URL
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getProfileBannerRetinaURL
String getProfileBannerRetinaURL()- 戻り値:
- profile banner retina URL
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getProfileBannerIPadURL
String getProfileBannerIPadURL()- 戻り値:
- profile banner iPad URL
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getProfileBannerIPadRetinaURL
String getProfileBannerIPadRetinaURL()- 戻り値:
- profile banner iPad retina URL
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getProfileBannerMobileURL
String getProfileBannerMobileURL()- 戻り値:
- profile banner mobile URL
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getProfileBannerMobileRetinaURL
String getProfileBannerMobileRetinaURL()- 戻り値:
- profile banner mobile retina URL
- 導入されたバージョン:
- Twitter4J 3.0.0
-
getProfileBanner300x100URL
String getProfileBanner300x100URL()- 戻り値:
- profile banner 300x100 URL
- 導入されたバージョン:
- Twitter4J 4.0.7
-
getProfileBanner600x200URL
String getProfileBanner600x200URL()- 戻り値:
- profile banner 600x200 URL
- 導入されたバージョン:
- Twitter4J 4.0.7
-
getProfileBanner1500x500URL
String getProfileBanner1500x500URL()- 戻り値:
- profile banner 1500x500 URL
- 導入されたバージョン:
- Twitter4J 4.0.7
-
isProfileBackgroundTiled
boolean isProfileBackgroundTiled()- 戻り値:
- profile background tiled
-
getLang
String getLang()Returns the preferred language of the user- 戻り値:
- the preferred language of the user
- 導入されたバージョン:
- Twitter4J 2.1.2
-
getStatusesCount
int getStatusesCount()- 戻り値:
- status count
-
isGeoEnabled
boolean isGeoEnabled()- 戻り値:
- the user is enabling geo location
- 導入されたバージョン:
- Twitter4J 2.0.10
-
isVerified
boolean isVerified()- 戻り値:
- returns true if the user is a verified celebrity
- 導入されたバージョン:
- Twitter4J 2.0.10
-
isTranslator
boolean isTranslator()- 戻り値:
- returns true if the user is a translator
- 導入されたバージョン:
- 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.- 戻り値:
- the number of public lists the user is listed on.
- 導入されたバージョン:
- Twitter4J 2.1.4
-
isFollowRequestSent
boolean isFollowRequestSent()Returns true if the authenticating user has requested to follow this user, otherwise false.- 戻り値:
- true if the authenticating user has requested to follow this user.
- 導入されたバージョン:
- Twitter4J 2.1.4
-
getDescriptionURLEntities
URLEntity[] getDescriptionURLEntities()Returns URL entities for user description.- 戻り値:
- URL entities for user description
- 導入されたバージョン:
- Twitter4J 3.0.3
-
getURLEntity
URLEntity getURLEntity()Returns URL entity for user's URL.- 戻り値:
- URL entity for user's URL.
- 導入されたバージョン:
- Twitter4J 3.0.3
-
getWithheldInCountries
String[] getWithheldInCountries()Returns the list of country codes where the user is withheld- 戻り値:
- list of country codes where the tweet is withheld - null if not withheld
- 導入されたバージョン:
- Twitter4j 4.0.3
-