public class User extends Object implements Serializable, Identifiable
| Modifier and Type | Field and Description |
|---|---|
boolean |
contributorsEnabled
Indicates that the user has an account with "contributor mode" enabled, allowing for Tweets
issued by the user to be co-authored by another account.
|
String |
createdAt
The UTC datetime that the user account was created on Twitter.
|
boolean |
defaultProfile
When true, indicates that the user has not altered the theme or background of their user
profile.
|
boolean |
defaultProfileImage
When true, indicates that the user has not uploaded their own avatar and a default egg avatar
is used instead.
|
String |
description
Nullable.
|
String |
email
Nullable.
|
UserEntities |
entities
Entities which have been parsed out of the url or description fields defined by the user.
|
int |
favouritesCount
The number of tweets this user has favorited in the account's lifetime.
|
int |
followersCount
The number of followers this account currently has.
|
boolean |
followRequestSent
Nullable.
|
int |
friendsCount
The number of users this account is following (AKA their "followings").
|
boolean |
geoEnabled
When true, indicates that the user has enabled the possibility of geotagging their Tweets.
|
long |
id
The integer representation of the unique identifier for this User.
|
String |
idStr
The string representation of the unique identifier for this User.
|
static long |
INVALID_ID |
boolean |
isTranslator
When true, indicates that the user is a participant in Twitter's translator community.
|
String |
lang
The BCP 47 code for the user's self-declared user interface language.
|
int |
listedCount
The number of public lists that this user is a member of.
|
String |
location
Nullable.
|
String |
name
The name of the user, as they've defined it.
|
String |
profileBackgroundColor
The hexadecimal color chosen by the user for their background.
|
String |
profileBackgroundImageUrl
A HTTP-based URL pointing to the background image the user has uploaded for their profile.
|
String |
profileBackgroundImageUrlHttps
A HTTPS-based URL pointing to the background image the user has uploaded for their profile.
|
boolean |
profileBackgroundTile
When true, indicates that the user's profile_background_image_url should be tiled when
displayed.
|
String |
profileBannerUrl
The HTTPS-based URL pointing to the standard web representation of the user's uploaded
profile banner.
|
String |
profileImageUrl
A HTTP-based URL pointing to the user's avatar image.
|
String |
profileImageUrlHttps
A HTTPS-based URL pointing to the user's avatar image.
|
String |
profileLinkColor
The hexadecimal color the user has chosen to display links with in their Twitter UI.
|
String |
profileSidebarBorderColor
The hexadecimal color the user has chosen to display sidebar borders with in their Twitter
UI.
|
String |
profileSidebarFillColor
The hexadecimal color the user has chosen to display sidebar backgrounds with in their
Twitter UI.
|
String |
profileTextColor
The hexadecimal color the user has chosen to display text with in their Twitter UI.
|
boolean |
profileUseBackgroundImage
When true, indicates the user wants their uploaded background image to be used.
|
boolean |
protectedUser
When true, indicates that this user has chosen to protect their Tweets.
|
String |
screenName
The screen name, handle, or alias that this user identifies themselves with.
|
boolean |
showAllInlineMedia
Indicates that the user would like to see media inline.
|
Tweet |
status
Nullable.
|
int |
statusesCount
The number of tweets (including retweets) issued by the user.
|
String |
timeZone
Nullable.
|
String |
url
Nullable.
|
int |
utcOffset
Nullable.
|
boolean |
verified
When true, indicates that the user has a verified account.
|
List<String> |
withheldInCountries
When present, indicates a textual representation of the two-letter country codes this user is
withheld from.
|
String |
withheldScope
When present, indicates whether the content being withheld is the "status" or a "user."
|
| Constructor and Description |
|---|
User(boolean contributorsEnabled,
String createdAt,
boolean defaultProfile,
boolean defaultProfileImage,
String description,
String emailAddress,
UserEntities entities,
int favouritesCount,
boolean followRequestSent,
int followersCount,
int friendsCount,
boolean geoEnabled,
long id,
String idStr,
boolean isTranslator,
String lang,
int listedCount,
String location,
String name,
String profileBackgroundColor,
String profileBackgroundImageUrl,
String profileBackgroundImageUrlHttps,
boolean profileBackgroundTile,
String profileBannerUrl,
String profileImageUrl,
String profileImageUrlHttps,
String profileLinkColor,
String profileSidebarBorderColor,
String profileSidebarFillColor,
String profileTextColor,
boolean profileUseBackgroundImage,
boolean protectedUser,
String screenName,
boolean showAllInlineMedia,
Tweet status,
int statusesCount,
String timeZone,
String url,
int utcOffset,
boolean verified,
List<String> withheldInCountries,
String withheldScope) |
| Modifier and Type | Method and Description |
|---|---|
long |
getId()
Returns the id.
|
public static final long INVALID_ID
public final boolean contributorsEnabled
public final String createdAt
public final boolean defaultProfile
public final boolean defaultProfileImage
public final String description
public final String email
public final UserEntities entities
public final int favouritesCount
public final boolean followRequestSent
public final int followersCount
public final int friendsCount
public final boolean geoEnabled
public final long id
public final String idStr
public final boolean isTranslator
public final String lang
public final int listedCount
public final String location
public final String name
public final String profileBackgroundColor
public final String profileBackgroundImageUrl
public final String profileBackgroundImageUrlHttps
public final boolean profileBackgroundTile
public final String profileBannerUrl
public final String profileImageUrl
public final String profileImageUrlHttps
public final String profileLinkColor
public final String profileSidebarBorderColor
public final String profileSidebarFillColor
public final String profileTextColor
public final boolean profileUseBackgroundImage
public final boolean protectedUser
public final String screenName
public final boolean showAllInlineMedia
public final Tweet status
public final int statusesCount
public final String timeZone
public final String url
public final int utcOffset
public final boolean verified
public final List<String> withheldInCountries
public final String withheldScope
public User(boolean contributorsEnabled,
String createdAt,
boolean defaultProfile,
boolean defaultProfileImage,
String description,
String emailAddress,
UserEntities entities,
int favouritesCount,
boolean followRequestSent,
int followersCount,
int friendsCount,
boolean geoEnabled,
long id,
String idStr,
boolean isTranslator,
String lang,
int listedCount,
String location,
String name,
String profileBackgroundColor,
String profileBackgroundImageUrl,
String profileBackgroundImageUrlHttps,
boolean profileBackgroundTile,
String profileBannerUrl,
String profileImageUrl,
String profileImageUrlHttps,
String profileLinkColor,
String profileSidebarBorderColor,
String profileSidebarFillColor,
String profileTextColor,
boolean profileUseBackgroundImage,
boolean protectedUser,
String screenName,
boolean showAllInlineMedia,
Tweet status,
int statusesCount,
String timeZone,
String url,
int utcOffset,
boolean verified,
List<String> withheldInCountries,
String withheldScope)
public long getId()
IdentifiablegetId in interface Identifiable