|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.TwitterResponseImpl
twitter4j.UserJSONImpl
class UserJSONImpl
A data class representing Basic user information element
Field Summary | |
---|---|
private java.util.Date |
createdAt
|
private java.lang.String |
description
|
private int |
favouritesCount
|
private int |
followersCount
|
private int |
friendsCount
|
private int |
id
|
private boolean |
isGeoEnabled
|
private boolean |
isProtected
|
private boolean |
isVerified
|
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 java.util.Date |
statusCreatedAt
|
private int |
statusesCount
|
private boolean |
statusFavorited
|
private long |
statusId
|
private java.lang.String |
statusInReplyToScreenName
|
private long |
statusInReplyToStatusId
|
private int |
statusInReplyToUserId
|
private java.lang.String |
statusSource
|
private java.lang.String |
statusText
|
private boolean |
statusTruncated
|
private java.lang.String |
timeZone
|
private java.lang.String |
url
|
private int |
utcOffset
|
Constructor Summary | |
---|---|
UserJSONImpl(HttpResponse res)
|
|
UserJSONImpl(twitter4j.org.json.JSONObject json)
|
Method Summary | |
---|---|
(package private) static PagableResponseList<User> |
createPagableUserList(HttpResponse res)
|
(package private) static ResponseList<User> |
createUserList(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 |
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 |
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.org.json.JSONObject json)
|
boolean |
isGeoEnabled()
|
boolean |
isProfileBackgroundTiled()
|
boolean |
isProtected()
Test if the user status is protected |
boolean |
isStatusFavorited()
|
boolean |
isStatusTruncated()
|
boolean |
isVerified()
|
java.lang.String |
toString()
|
Methods inherited from class twitter4j.TwitterResponseImpl |
---|
getRateLimitStatus, setRateLimitStatus |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface twitter4j.TwitterResponse |
---|
getRateLimitStatus |
Field Detail |
---|
private int id
private java.lang.String name
private java.lang.String screenName
private java.lang.String location
private java.lang.String description
private java.lang.String profileImageUrl
private java.lang.String url
private boolean isProtected
private int followersCount
private java.util.Date statusCreatedAt
private long statusId
private java.lang.String statusText
private java.lang.String statusSource
private boolean statusTruncated
private long statusInReplyToStatusId
private int statusInReplyToUserId
private boolean statusFavorited
private java.lang.String statusInReplyToScreenName
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 int statusesCount
private boolean isGeoEnabled
private boolean isVerified
private static final long serialVersionUID
Constructor Detail |
---|
UserJSONImpl(HttpResponse res) throws TwitterException
TwitterException
UserJSONImpl(twitter4j.org.json.JSONObject json) throws TwitterException
TwitterException
Method Detail |
---|
private void init(twitter4j.org.json.JSONObject json) throws TwitterException
TwitterException
public int getId()
getId
in interface User
public java.lang.String getName()
getName
in interface User
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 java.net.URL getProfileImageURL()
getProfileImageURL
in interface User
public java.net.URL getURL()
getURL
in interface User
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 int getFriendsCount()
getFriendsCount
in interface User
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 int getStatusesCount()
getStatusesCount
in interface User
public boolean isGeoEnabled()
isGeoEnabled
in interface User
public boolean isVerified()
isVerified
in interface User
static PagableResponseList<User> createPagableUserList(HttpResponse res) throws TwitterException
TwitterException
static ResponseList<User> createUserList(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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |