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 int |
favouritesCount |
private int |
followersCount |
private int |
friendsCount |
private int |
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 boolean |
profileBackgroundTiled |
private java.lang.String |
profileImageUrl |
private java.lang.String |
profileLinkColor |
private java.lang.String |
profileSidebarBorderColor |
private java.lang.String |
profileSidebarFillColor |
private java.lang.String |
profileTextColor |
private java.lang.String |
screenName |
private static long |
serialVersionUID |
private Status |
status |
private int |
statusesCount |
private java.lang.String |
timeZone |
private java.lang.String |
url |
private int |
utcOffset |
| Constructor and Description |
|---|
UserJSONImpl(twitter4j.internal.http.HttpResponse res) |
UserJSONImpl(twitter4j.internal.org.json.JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User that) |
(package private) static PagableResponseList<User> |
createPagableUserList(twitter4j.internal.http.HttpResponse res) |
(package private) static ResponseList<User> |
createUserList(twitter4j.internal.http.HttpResponse res) |
(package private) static ResponseList<User> |
createUserList(twitter4j.internal.org.json.JSONArray list,
twitter4j.internal.http.HttpResponse res) |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreatedAt() |
java.lang.String |
getDescription()
Returns the description of the user
|
int |
getFavouritesCount() |
int |
getFollowersCount()
Returns the number of followers
|
int |
getFriendsCount() |
int |
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 |
getName()
Returns the name of the user
|
java.lang.String |
getProfileBackgroundColor() |
java.lang.String |
getProfileBackgroundImageUrl() |
java.net.URL |
getProfileImageURL()
Returns the profile image url of the user
|
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(). |
java.util.Date |
getStatusCreatedAt() |
int |
getStatusesCount() |
long |
getStatusId() |
java.lang.String |
getStatusInReplyToScreenName() |
long |
getStatusInReplyToStatusId() |
int |
getStatusInReplyToUserId() |
java.lang.String |
getStatusSource() |
java.lang.String |
getStatusText() |
java.lang.String |
getTimeZone() |
java.net.URL |
getURL()
Returns the url of the user
|
int |
getUtcOffset() |
int |
hashCode() |
private void |
init(twitter4j.internal.org.json.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 |
isProtected()
Test if the user status is protected
|
boolean |
isStatusFavorited() |
boolean |
isStatusTruncated() |
boolean |
isVerified() |
java.lang.String |
toString() |
getRateLimitStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetRateLimitStatusprivate int id
private java.lang.String name
private java.lang.String screenName
private java.lang.String location
private java.lang.String description
private boolean isContributorsEnabled
private java.lang.String profileImageUrl
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 int friendsCount
private java.util.Date createdAt
private int favouritesCount
private int utcOffset
private java.lang.String timeZone
private java.lang.String profileBackgroundImageUrl
private boolean profileBackgroundTiled
private java.lang.String lang
private int statusesCount
private boolean isGeoEnabled
private boolean isVerified
private int listedCount
private boolean isFollowRequestSent
private static final long serialVersionUID
UserJSONImpl(twitter4j.internal.http.HttpResponse res)
throws TwitterException
TwitterExceptionUserJSONImpl(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
TwitterExceptionprivate void init(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
TwitterExceptionpublic int compareTo(User that)
compareTo in interface java.lang.Comparable<User>public int 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.net.URL getProfileImageURL()
getProfileImageURL in interface Userpublic java.net.URL getURL()
public boolean isProtected()
isProtected in interface Userpublic int getFollowersCount()
getFollowersCount in interface Userpublic java.util.Date getStatusCreatedAt()
getStatusCreatedAt in interface Userpublic long getStatusId()
getStatusId in interface Userpublic java.lang.String getStatusText()
getStatusText in interface Userpublic java.lang.String getStatusSource()
getStatusSource in interface Userpublic boolean isStatusTruncated()
isStatusTruncated in interface Userpublic long getStatusInReplyToStatusId()
getStatusInReplyToStatusId in interface Userpublic int getStatusInReplyToUserId()
getStatusInReplyToUserId in interface Userpublic boolean isStatusFavorited()
isStatusFavorited in interface Userpublic java.lang.String getStatusInReplyToScreenName()
getStatusInReplyToScreenName 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 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 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 int getListedCount()
getListedCount in interface Userpublic boolean isFollowRequestSent()
isFollowRequestSent in interface Userstatic PagableResponseList<User> createPagableUserList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterExceptionstatic ResponseList<User> createUserList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterExceptionstatic ResponseList<User> createUserList(twitter4j.internal.org.json.JSONArray list, twitter4j.internal.http.HttpResponse res) 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