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 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 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 |
isProfileUseBackgroundImage() |
boolean |
isProtected()
Test if the user status is protected
|
boolean |
isShowAllInlineMedia() |
boolean |
isStatusFavorited() |
boolean |
isStatusTruncated() |
boolean |
isTranslator() |
boolean |
isVerified() |
java.lang.String |
toString() |
getRateLimitStatus
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getRateLimitStatus
private 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 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 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
private static final long serialVersionUID
UserJSONImpl(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
UserJSONImpl(twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
private void init(twitter4j.internal.org.json.JSONObject json) throws TwitterException
TwitterException
public 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 User
public java.lang.String getLocation()
getLocation
in interface User
public java.lang.String getDescription()
getDescription
in interface User
public boolean isContributorsEnabled()
isContributorsEnabled
in interface User
public java.net.URL getProfileImageURL()
getProfileImageURL
in interface User
public java.net.URL getURL()
public boolean isProtected()
isProtected
in interface User
public int getFollowersCount()
getFollowersCount
in interface User
public java.util.Date getStatusCreatedAt()
getStatusCreatedAt
in interface User
public long getStatusId()
getStatusId
in interface User
public java.lang.String getStatusText()
getStatusText
in interface User
public java.lang.String getStatusSource()
getStatusSource
in interface User
public boolean isStatusTruncated()
isStatusTruncated
in interface User
public long getStatusInReplyToStatusId()
getStatusInReplyToStatusId
in interface User
public int getStatusInReplyToUserId()
getStatusInReplyToUserId
in interface User
public boolean isStatusFavorited()
isStatusFavorited
in interface User
public java.lang.String getStatusInReplyToScreenName()
getStatusInReplyToScreenName
in interface User
public java.lang.String getProfileBackgroundColor()
getProfileBackgroundColor
in interface User
public java.lang.String getProfileTextColor()
getProfileTextColor
in interface User
public java.lang.String getProfileLinkColor()
getProfileLinkColor
in interface User
public java.lang.String getProfileSidebarFillColor()
getProfileSidebarFillColor
in interface User
public java.lang.String getProfileSidebarBorderColor()
getProfileSidebarBorderColor
in interface User
public boolean isProfileUseBackgroundImage()
isProfileUseBackgroundImage
in interface User
public boolean isShowAllInlineMedia()
isShowAllInlineMedia
in interface User
public int getFriendsCount()
getFriendsCount
in interface User
public Status getStatus()
public java.util.Date getCreatedAt()
getCreatedAt
in interface User
public int getFavouritesCount()
getFavouritesCount
in interface User
public int getUtcOffset()
getUtcOffset
in interface User
public java.lang.String getTimeZone()
getTimeZone
in interface User
public java.lang.String getProfileBackgroundImageUrl()
getProfileBackgroundImageUrl
in interface User
public boolean isProfileBackgroundTiled()
isProfileBackgroundTiled
in interface User
public java.lang.String getLang()
public int getStatusesCount()
getStatusesCount
in interface User
public boolean isGeoEnabled()
isGeoEnabled
in interface User
public boolean isVerified()
isVerified
in interface User
public boolean isTranslator()
isTranslator
in interface User
public int getListedCount()
getListedCount
in interface User
public boolean isFollowRequestSent()
isFollowRequestSent
in interface User
static PagableResponseList<User> createPagableUserList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
static ResponseList<User> createUserList(twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
static ResponseList<User> createUserList(twitter4j.internal.org.json.JSONArray list, twitter4j.internal.http.HttpResponse res) throws TwitterException
TwitterException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object