final class UserJSONImpl extends TwitterResponseImpl implements User, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Date |
createdAt |
private java.lang.String |
description |
private URLEntity[] |
descriptionURLEntities |
private int |
favouritesCount |
private int |
followersCount |
private int |
friendsCount |
private long |
id |
private boolean |
isContributorsEnabled |
private boolean |
isFollowRequestSent |
private boolean |
isGeoEnabled |
private boolean |
isProtected |
private boolean |
isVerified |
private java.lang.String |
lang |
private int |
listedCount |
private java.lang.String |
location |
private java.lang.String |
name |
private java.lang.String |
profileBackgroundColor |
private java.lang.String |
profileBackgroundImageUrl |
private java.lang.String |
profileBackgroundImageUrlHttps |
private boolean |
profileBackgroundTiled |
private java.lang.String |
profileBannerImageUrl |
private java.lang.String |
profileImageUrl |
private java.lang.String |
profileImageUrlHttps |
private java.lang.String |
profileLinkColor |
private java.lang.String |
profileSidebarBorderColor |
private java.lang.String |
profileSidebarFillColor |
private java.lang.String |
profileTextColor |
private boolean |
profileUseBackgroundImage |
private java.lang.String |
screenName |
private static long |
serialVersionUID |
private boolean |
showAllInlineMedia |
private Status |
status |
private int |
statusesCount |
private java.lang.String |
timeZone |
private boolean |
translator |
private java.lang.String |
url |
private URLEntity |
urlEntity |
private int |
utcOffset |
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
UserJSONImpl() |
UserJSONImpl(HttpResponse res,
Configuration conf) |
UserJSONImpl(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User that) |
(package private) static PagableResponseList<User> |
createPagableUserList(HttpResponse res,
Configuration conf) |
(package private) static ResponseList<User> |
createUserList(HttpResponse res,
Configuration conf) |
(package private) static ResponseList<User> |
createUserList(JSONArray list,
HttpResponse res,
Configuration conf) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBiggerProfileImageURL() |
java.lang.String |
getBiggerProfileImageURLHttps() |
java.util.Date |
getCreatedAt() |
java.lang.String |
getDescription()
Returns the description of the user
|
URLEntity[] |
getDescriptionURLEntities()
Returns URL entities for user description.
|
int |
getFavouritesCount() |
int |
getFollowersCount()
Returns the number of followers
|
int |
getFriendsCount() |
long |
getId()
Returns the id of the user
|
java.lang.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.
|
java.lang.String |
getLocation()
Returns the location of the user
|
java.lang.String |
getMiniProfileImageURL() |
java.lang.String |
getMiniProfileImageURLHttps() |
java.lang.String |
getName()
Returns the name of the user
|
java.lang.String |
getOriginalProfileImageURL() |
java.lang.String |
getOriginalProfileImageURLHttps() |
java.lang.String |
getProfileBackgroundColor() |
java.lang.String |
getProfileBackgroundImageURL() |
java.lang.String |
getProfileBackgroundImageUrlHttps() |
java.lang.String |
getProfileBannerIPadRetinaURL() |
java.lang.String |
getProfileBannerIPadURL() |
java.lang.String |
getProfileBannerMobileRetinaURL() |
java.lang.String |
getProfileBannerMobileURL() |
java.lang.String |
getProfileBannerRetinaURL() |
java.lang.String |
getProfileBannerURL() |
java.lang.String |
getProfileImageURL()
Returns the profile image url of the user
|
java.lang.String |
getProfileImageURLHttps() |
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
|
Status |
getStatus()
Returns the current status of the user
This can be null if the instance if from Status.getUser(). |
int |
getStatusesCount() |
java.lang.String |
getTimeZone() |
java.lang.String |
getURL()
Returns the url of the user
|
private static URLEntity[] |
getURLEntitiesFromJSON(JSONObject json,
java.lang.String category)
Get URL Entities from JSON Object.
|
URLEntity |
getURLEntity()
Returns URL entity for user's URL.
|
int |
getUtcOffset() |
int |
hashCode() |
private void |
init(JSONObject json) |
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() |
private java.lang.String |
toResizedURL(java.lang.String originalURL,
java.lang.String sizeSuffix) |
java.lang.String |
toString() |
getAccessLevel, getRateLimitStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatusprivate static final long serialVersionUID
private long id
private java.lang.String name
private java.lang.String screenName
private java.lang.String location
private java.lang.String description
private URLEntity[] descriptionURLEntities
private URLEntity urlEntity
private boolean isContributorsEnabled
private java.lang.String profileImageUrl
private java.lang.String profileImageUrlHttps
private java.lang.String url
private boolean isProtected
private int followersCount
private Status status
private java.lang.String profileBackgroundColor
private java.lang.String profileTextColor
private java.lang.String profileLinkColor
private java.lang.String profileSidebarFillColor
private java.lang.String profileSidebarBorderColor
private boolean profileUseBackgroundImage
private boolean showAllInlineMedia
private int friendsCount
private java.util.Date createdAt
private int favouritesCount
private int utcOffset
private java.lang.String timeZone
private java.lang.String profileBackgroundImageUrl
private java.lang.String profileBackgroundImageUrlHttps
private java.lang.String profileBannerImageUrl
private boolean profileBackgroundTiled
private java.lang.String lang
private int statusesCount
private boolean isGeoEnabled
private boolean isVerified
private boolean translator
private int listedCount
private boolean isFollowRequestSent
UserJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionUserJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionUserJSONImpl()
private void init(JSONObject json) throws TwitterException
TwitterExceptionprivate static URLEntity[] getURLEntitiesFromJSON(JSONObject json, java.lang.String category) throws JSONException, TwitterException
json - user json objectcategory - entities category. e.g. "description" or "url"JSONExceptionTwitterExceptionpublic int compareTo(User that)
compareTo in interface java.lang.Comparable<User>public long getId()
public java.lang.String getName()
public java.lang.String getScreenName()
getScreenName in interface Userpublic java.lang.String getLocation()
getLocation in interface Userpublic java.lang.String getDescription()
getDescription in interface Userpublic boolean isContributorsEnabled()
isContributorsEnabled in interface Userpublic java.lang.String getProfileImageURL()
getProfileImageURL in interface Userpublic java.lang.String getBiggerProfileImageURL()
getBiggerProfileImageURL in interface Userpublic java.lang.String getMiniProfileImageURL()
getMiniProfileImageURL in interface Userpublic java.lang.String getOriginalProfileImageURL()
getOriginalProfileImageURL in interface Userprivate java.lang.String toResizedURL(java.lang.String originalURL,
java.lang.String sizeSuffix)
public java.lang.String getProfileImageURLHttps()
getProfileImageURLHttps in interface Userpublic java.lang.String getBiggerProfileImageURLHttps()
getBiggerProfileImageURLHttps in interface Userpublic java.lang.String getMiniProfileImageURLHttps()
getMiniProfileImageURLHttps in interface Userpublic java.lang.String getOriginalProfileImageURLHttps()
getOriginalProfileImageURLHttps in interface Userpublic java.lang.String getURL()
public boolean isProtected()
isProtected in interface Userpublic int getFollowersCount()
getFollowersCount in interface Userpublic java.lang.String getProfileBackgroundColor()
getProfileBackgroundColor in interface Userpublic java.lang.String getProfileTextColor()
getProfileTextColor in interface Userpublic java.lang.String getProfileLinkColor()
getProfileLinkColor in interface Userpublic java.lang.String getProfileSidebarFillColor()
getProfileSidebarFillColor in interface Userpublic java.lang.String getProfileSidebarBorderColor()
getProfileSidebarBorderColor in interface Userpublic boolean isProfileUseBackgroundImage()
isProfileUseBackgroundImage in interface Userpublic boolean isShowAllInlineMedia()
isShowAllInlineMedia in interface Userpublic int getFriendsCount()
getFriendsCount in interface Userpublic Status getStatus()
public java.util.Date getCreatedAt()
getCreatedAt in interface Userpublic int getFavouritesCount()
getFavouritesCount in interface Userpublic int getUtcOffset()
getUtcOffset in interface Userpublic java.lang.String getTimeZone()
getTimeZone in interface Userpublic java.lang.String getProfileBackgroundImageURL()
getProfileBackgroundImageURL in interface Userpublic java.lang.String getProfileBackgroundImageUrlHttps()
getProfileBackgroundImageUrlHttps in interface Userpublic java.lang.String getProfileBannerURL()
getProfileBannerURL in interface Userpublic java.lang.String getProfileBannerRetinaURL()
getProfileBannerRetinaURL in interface Userpublic java.lang.String getProfileBannerIPadURL()
getProfileBannerIPadURL in interface Userpublic java.lang.String getProfileBannerIPadRetinaURL()
getProfileBannerIPadRetinaURL in interface Userpublic java.lang.String getProfileBannerMobileURL()
getProfileBannerMobileURL in interface Userpublic java.lang.String getProfileBannerMobileRetinaURL()
getProfileBannerMobileRetinaURL in interface Userpublic boolean isProfileBackgroundTiled()
isProfileBackgroundTiled in interface Userpublic java.lang.String getLang()
public int getStatusesCount()
getStatusesCount in interface Userpublic boolean isGeoEnabled()
isGeoEnabled in interface Userpublic boolean isVerified()
isVerified in interface Userpublic boolean isTranslator()
isTranslator in interface Userpublic int getListedCount()
getListedCount in interface Userpublic boolean isFollowRequestSent()
isFollowRequestSent in interface Userpublic URLEntity[] getDescriptionURLEntities()
getDescriptionURLEntities in interface Userpublic URLEntity getURLEntity()
getURLEntity in interface Userstatic PagableResponseList<User> createPagableUserList(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionstatic ResponseList<User> createUserList(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionstatic ResponseList<User> createUserList(JSONArray list, HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object