public final class UserJSONImpl extends JSONResponseImpl implements User, java.io.Serializable
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
UserJSONImpl(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User that) |
boolean |
equals(java.lang.Object obj) |
int |
getAccessLevel() |
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 |
getIdStr()
Test if the user status is protected
|
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 |
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.net.URL |
getProfileImageUrlHttps()
Returns the profile image url of the user, served over SSL
|
java.lang.String |
getProfileImageURLHttps() |
java.lang.String |
getProfileLinkColor() |
java.lang.String |
getProfileSidebarBorderColor() |
java.lang.String |
getProfileSidebarFillColor() |
java.lang.String |
getProfileTextColor() |
RateLimitStatus |
getRateLimitStatus()
Returns the current rate limit status if available.
|
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
|
URLEntity |
getURLEntity()
Returns URL entity for user's URL.
|
int |
getUtcOffset() |
int |
hashCode() |
boolean |
isContributorsEnabled()
Tests if the user is enabling contributors
|
java.lang.Boolean |
isFollowing() |
boolean |
isFollowRequestSent()
Returns true if the authenticating user has requested to follow this user,
otherwise false.
|
boolean |
isGeoEnabled() |
boolean |
isProfileBackgroundTiled() |
boolean |
isProfileUseBackgroundImage() |
boolean |
isProtected() |
boolean |
isShowAllInlineMedia() |
boolean |
isTranslator() |
boolean |
isVerified() |
java.lang.String |
toString() |
getJSONObject, getRawJSONclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatuspublic UserJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionpublic 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 Userpublic java.net.URL getProfileImageUrlHttps()
getProfileImageUrlHttps in interface Userpublic 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 java.lang.String getIdStr()
Userpublic boolean isProtected()
isProtected in interface Userpublic java.lang.Boolean isFollowing()
isFollowing 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 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 Userpublic 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.Objectpublic RateLimitStatus getRateLimitStatus()
getRateLimitStatus in interface TwitterResponsepublic int getAccessLevel()
getAccessLevel in interface TwitterResponse