public static final class Twitter.User
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.Date |
createdAt |
java.lang.String |
description |
int |
favoritesCount |
int |
followersCount |
boolean |
following |
int |
friendsCount
number of people this user is following
|
long |
id |
java.lang.String |
location |
java.lang.String |
name
The display name, e.g.
|
boolean |
notifications |
java.lang.String |
profileBackgroundColor |
java.net.URI |
profileBackgroundImageUrl |
boolean |
profileBackgroundTile |
java.net.URI |
profileImageUrl
The url for the user's Twitter profile picture.
|
java.lang.String |
profileLinkColor |
java.lang.String |
profileSidebarBorderColor |
java.lang.String |
profileSidebarFillColor |
java.lang.String |
profileTextColor |
boolean |
protectedUser
true if this user keeps their updates private
|
java.lang.String |
screenName
The login name, e.g.
|
Twitter.Status |
status |
int |
statusesCount |
java.lang.String |
timezone |
int |
timezoneOffSet
Number of seconds between a user's registered time zone and Greenwich Mean Time (GMT) - aka Coordinated Universal Time or
UTC.
|
boolean |
verified |
java.net.URI |
website |
| Constructor and Description |
|---|
Twitter.User(java.lang.String screenName)
Create a dummy User object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.util.Date |
getCreatedAt() |
java.lang.String |
getDescription() |
int |
getFavoritesCount()
number of statuses a user has marked as favorite
|
int |
getFollowersCount() |
int |
getFriendsCount() |
long |
getId() |
java.lang.String |
getLocation() |
java.lang.String |
getName()
The display name, e.g.
|
java.lang.String |
getProfileBackgroundColor() |
java.net.URI |
getProfileBackgroundImageUrl() |
java.net.URI |
getProfileImageUrl() |
java.lang.String |
getProfileLinkColor() |
java.lang.String |
getProfileSidebarBorderColor() |
java.lang.String |
getProfileSidebarFillColor() |
java.lang.String |
getProfileTextColor() |
boolean |
getProtectedUser() |
java.lang.String |
getScreenName()
The login name, e.g.
|
Twitter.Status |
getStatus() |
int |
getStatusesCount() |
java.lang.String |
getTimezone()
String version of the timezone
|
int |
getTimezoneOffSet()
Number of seconds between a user's registered time zone and Greenwich Mean Time (GMT) - aka Coordinated Universal Time or
UTC.
|
java.net.URI |
getWebsite() |
int |
hashCode() |
boolean |
isDummyObject() |
boolean |
isFollowing() |
boolean |
isNotifications() |
boolean |
isProfileBackgroundTile() |
boolean |
isProtectedUser()
true if this user keeps their updates private
|
boolean |
isVerified() |
java.lang.String |
toString()
Returns the User's screenName (i.e.
|
public final java.util.Date createdAt
public final java.lang.String description
public final int favoritesCount
public int followersCount
public final boolean following
public final int friendsCount
public final long id
public final java.lang.String location
public final java.lang.String name
public final boolean notifications
public final java.lang.String profileBackgroundColor
public final java.net.URI profileBackgroundImageUrl
public final boolean profileBackgroundTile
public java.net.URI profileImageUrl
Note: we allow this to be edited as a convenience for the User objects generated by search
public final java.lang.String profileLinkColor
public final java.lang.String profileSidebarBorderColor
public final java.lang.String profileSidebarFillColor
public final java.lang.String profileTextColor
public final boolean protectedUser
public final java.lang.String screenName
public final Twitter.Status status
public final int statusesCount
public final java.lang.String timezone
public final int timezoneOffSet
public final boolean verified
public final java.net.URI website
public Twitter.User(java.lang.String screenName)
// Test whether jtwit is a friend
twitter.getFriends().contains(new User("jtwit"));
screenName - This will be converted to lower-case as Twitter screen-names are case insensitivepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.util.Date getCreatedAt()
public java.lang.String getDescription()
public int getFavoritesCount()
public int getFollowersCount()
public int getFriendsCount()
public long getId()
public java.lang.String getLocation()
public java.lang.String getName()
getScreenName()public java.lang.String getProfileBackgroundColor()
public java.net.URI getProfileBackgroundImageUrl()
public java.net.URI getProfileImageUrl()
public java.lang.String getProfileLinkColor()
public java.lang.String getProfileSidebarBorderColor()
public java.lang.String getProfileSidebarFillColor()
public java.lang.String getProfileTextColor()
public boolean getProtectedUser()
public java.lang.String getScreenName()
public Twitter.Status getStatus()
public int getStatusesCount()
public java.lang.String getTimezone()
public int getTimezoneOffSet()
public java.net.URI getWebsite()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isDummyObject()
profileImageUrl. Dummy User objects are equals() to full User objects.public boolean isFollowing()
public boolean isNotifications()
public boolean isProfileBackgroundTile()
public boolean isProtectedUser()
public boolean isVerified()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 gvSIG Association. All Rights Reserved.