|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.TwitterResponse
twitter4j.User
public class User
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 boolean |
following
|
private int |
friendsCount
|
private boolean |
geoEnabled
|
private int |
id
|
private boolean |
isProtected
|
private java.lang.String |
location
|
private java.lang.String |
name
|
private boolean |
notificationEnabled
|
(package private) static java.lang.String[] |
POSSIBLE_ROOT_NAMES
|
private java.lang.String |
profileBackgroundColor
|
private java.lang.String |
profileBackgroundImageUrl
|
private java.lang.String |
profileBackgroundTile
|
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 Twitter |
twitter
|
private java.lang.String |
url
|
private int |
utcOffset
|
private boolean |
verified
|
Constructor Summary | |
---|---|
User(twitter4j.org.json.JSONObject json)
|
|
User(twitter4j.http.Response res,
org.w3c.dom.Element elem,
Twitter twitter)
|
|
User(twitter4j.http.Response res,
Twitter twitter)
|
Method Summary | |
---|---|
static java.util.List<User> |
constructUsers(twitter4j.http.Response res,
Twitter twitter)
|
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.lang.String |
getProfileBackgroundTile()
|
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(org.w3c.dom.Element elem,
Twitter twitter)
|
private void |
init(twitter4j.org.json.JSONObject json)
|
boolean |
isFollowing()
Deprecated. Deprecation of following and notification elements |
boolean |
isGeoEnabled()
|
boolean |
isNotificationEnabled()
Deprecated. Deprecation of following and notification elements |
boolean |
isNotifications()
Deprecated. use isNotificationsEnabled() instead |
boolean |
isProtected()
Test if the user status is protected |
boolean |
isStatusFavorited()
|
boolean |
isStatusTruncated()
|
boolean |
isVerified()
|
DirectMessage |
sendDirectMessage(java.lang.String text)
|
java.lang.String |
toString()
|
Methods inherited from class twitter4j.TwitterResponse |
---|
ensureRootNodeNameIs, ensureRootNodeNameIs, ensureRootNodeNameIs, getBoolean, getChildBoolean, getChildDate, getChildDate, getChildInt, getChildLong, getChildText, getInt, getLong, getRateLimitLimit, getRateLimitRemaining, getRateLimitReset, getString, getTextContent, isRootNodeNilClasses, parseDate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final java.lang.String[] POSSIBLE_ROOT_NAMES
private Twitter twitter
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 java.lang.String profileBackgroundTile
private boolean following
private boolean notificationEnabled
private int statusesCount
private boolean geoEnabled
private boolean verified
private static final long serialVersionUID
Constructor Detail |
---|
User(twitter4j.http.Response res, Twitter twitter) throws TwitterException
TwitterException
User(twitter4j.http.Response res, org.w3c.dom.Element elem, Twitter twitter) throws TwitterException
TwitterException
User(twitter4j.org.json.JSONObject json) throws TwitterException
TwitterException
Method Detail |
---|
private void init(twitter4j.org.json.JSONObject json) throws TwitterException
TwitterException
private void init(org.w3c.dom.Element elem, Twitter twitter) throws TwitterException
TwitterException
public int getId()
public java.lang.String getName()
public java.lang.String getScreenName()
public java.lang.String getLocation()
public java.lang.String getDescription()
public java.net.URL getProfileImageURL()
public java.net.URL getURL()
public boolean isProtected()
public int getFollowersCount()
public DirectMessage sendDirectMessage(java.lang.String text) throws TwitterException
TwitterException
public static java.util.List<User> constructUsers(twitter4j.http.Response res, Twitter twitter) throws TwitterException
TwitterException
public java.util.Date getStatusCreatedAt()
public long getStatusId()
public java.lang.String getStatusText()
public java.lang.String getStatusSource()
public boolean isStatusTruncated()
public long getStatusInReplyToStatusId()
public int getStatusInReplyToUserId()
public boolean isStatusFavorited()
public java.lang.String getStatusInReplyToScreenName()
public java.lang.String getProfileBackgroundColor()
public java.lang.String getProfileTextColor()
public java.lang.String getProfileLinkColor()
public java.lang.String getProfileSidebarFillColor()
public java.lang.String getProfileSidebarBorderColor()
public int getFriendsCount()
public java.util.Date getCreatedAt()
public int getFavouritesCount()
public int getUtcOffset()
public java.lang.String getTimeZone()
public java.lang.String getProfileBackgroundImageUrl()
public java.lang.String getProfileBackgroundTile()
public boolean isFollowing()
public boolean isNotifications()
public boolean isNotificationEnabled()
public int getStatusesCount()
public boolean isGeoEnabled()
public boolean isVerified()
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 |