Spring Social Twitter

org.springframework.social.twitter.api
Class TwitterProfile

java.lang.Object
  extended by org.springframework.social.twitter.api.TwitterProfile
All Implemented Interfaces:
java.io.Serializable

public class TwitterProfile
extends java.lang.Object
implements java.io.Serializable

Model class representing a Twitter user's profile information.

Author:
Craig Walls
See Also:
Serialized Form

Constructor Summary
TwitterProfile(long id, java.lang.String screenName, java.lang.String name, java.lang.String url, java.lang.String profileImageUrl, java.lang.String description, java.lang.String location, java.util.Date createdDate)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getBackgroundColor()
          The color of the background of the user's Twitter profile page.
 java.lang.String getBackgroundImageUrl()
          The URL to a background image shown on the user's Twitter profile page.
 java.util.Date getCreatedDate()
          The date that the Twitter profile was created.
 java.lang.String getDescription()
          The user's description
 int getFavoritesCount()
          The number of tweets that the user has marked as favorites.
 int getFollowersCount()
          The number of followers the user has.
 int getFriendsCount()
          The number of friends the user has (the number of users this user follows).
 long getId()
          The user's Twitter ID
 java.lang.String getLanguage()
          The user's preferred language.
 java.lang.String getLinkColor()
          The link color on the user's Twitter profile page.
 int getListedCount()
          The number of lists the user is listed on.
 java.lang.String getLocation()
          The user's location
 java.lang.String getName()
          The user's full name
 java.lang.String getProfileImageUrl()
           The URL of the user's profile image in "normal" size (48x48).
 java.lang.String getProfileUrl()
           The URL of the user's profile.
 java.lang.String getScreenName()
          The user's Twitter screen name
static long getSerialversionuid()
           
 java.lang.String getSidebarBorderColor()
          The color of the sidebar border on the user's Twitter profile page.
 java.lang.String getSidebarFillColor()
          The color of the sidebar fill on the user's Twitter profile page.
 int getStatusesCount()
          The number of tweets this user has posted.
 java.lang.String getTextColor()
          The text color on the user's Twitter profile page.
 java.lang.String getTimeZone()
          The user's time zone.
 java.lang.String getUrl()
          The user's URL
 int getUtcOffset()
          The user's UTC offset in seconds.
 int hashCode()
           
 boolean isBackgroundImageTiled()
          Whether or not the background image is tiled.
 boolean isContributorsEnabled()
          Whether or not this profile is enabled for contributors.
 boolean isFollowing()
          Whether or not the authenticated user is following this user.
 boolean isFollowRequestSent()
          Whether or not a request has been sent by the authenticating user to follow this user.
 boolean isGeoEnabled()
          Whether or not the user has enabled their account with geo location.
 boolean isNotificationsEnabled()
          Whether or not the user has mobile notifications enabled.
 boolean isProtected()
          Whether or not the user's tweets are protected.
 boolean isTranslator()
          Whether or not this user is a translator.
 boolean isVerified()
          Whether or not the user is verified with Twitter.
 boolean showAllInlineMedia()
          Whether or not the user has selected to see all inline media from everyone.
 boolean useBackgroundImage()
          Whether or not the user's Twitter profile page uses a background image.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterProfile

public TwitterProfile(long id,
                      java.lang.String screenName,
                      java.lang.String name,
                      java.lang.String url,
                      java.lang.String profileImageUrl,
                      java.lang.String description,
                      java.lang.String location,
                      java.util.Date createdDate)
Method Detail

getSerialversionuid

public static long getSerialversionuid()

getId

public long getId()
The user's Twitter ID

Returns:
The user's Twitter ID

getScreenName

public java.lang.String getScreenName()
The user's Twitter screen name

Returns:
The user's Twitter screen name

getName

public java.lang.String getName()
The user's full name

Returns:
The user's full name

getUrl

public java.lang.String getUrl()
The user's URL

Returns:
The user's URL

getDescription

public java.lang.String getDescription()
The user's description

Returns:
The user's description

getLocation

public java.lang.String getLocation()
The user's location

Returns:
The user's location

getProfileImageUrl

public java.lang.String getProfileImageUrl()

The URL of the user's profile image in "normal" size (48x48).

Returns:
The URL of the user's normal-sized profile image.

getProfileUrl

public java.lang.String getProfileUrl()

The URL of the user's profile.

Returns:
The URL of the user's profile.

getCreatedDate

public java.util.Date getCreatedDate()
The date that the Twitter profile was created.

Returns:
The date that the Twitter profile was created.

isNotificationsEnabled

public boolean isNotificationsEnabled()
Whether or not the user has mobile notifications enabled.


isVerified

public boolean isVerified()
Whether or not the user is verified with Twitter. See http://support.twitter.com/groups/31-twitter-basics/topics/111-features/articles/119135-about-verified-accounts.


isGeoEnabled

public boolean isGeoEnabled()
Whether or not the user has enabled their account with geo location.


getLanguage

public java.lang.String getLanguage()
The user's preferred language.


getStatusesCount

public int getStatusesCount()
The number of tweets this user has posted.


getListedCount

public int getListedCount()
The number of lists the user is listed on.


getFriendsCount

public int getFriendsCount()
The number of friends the user has (the number of users this user follows).


getFollowersCount

public int getFollowersCount()
The number of followers the user has.


isFollowing

public boolean isFollowing()
Whether or not the authenticated user is following this user.


isFollowRequestSent

public boolean isFollowRequestSent()
Whether or not a request has been sent by the authenticating user to follow this user.


getFavoritesCount

public int getFavoritesCount()
The number of tweets that the user has marked as favorites.


isProtected

public boolean isProtected()
Whether or not the user's tweets are protected.


getTimeZone

public java.lang.String getTimeZone()
The user's time zone.


getUtcOffset

public int getUtcOffset()
The user's UTC offset in seconds.


isContributorsEnabled

public boolean isContributorsEnabled()
Whether or not this profile is enabled for contributors.


isTranslator

public boolean isTranslator()
Whether or not this user is a translator.


getSidebarBorderColor

public java.lang.String getSidebarBorderColor()
The color of the sidebar border on the user's Twitter profile page.


getSidebarFillColor

public java.lang.String getSidebarFillColor()
The color of the sidebar fill on the user's Twitter profile page.


getBackgroundColor

public java.lang.String getBackgroundColor()
The color of the background of the user's Twitter profile page.


useBackgroundImage

public boolean useBackgroundImage()
Whether or not the user's Twitter profile page uses a background image.


getBackgroundImageUrl

public java.lang.String getBackgroundImageUrl()
The URL to a background image shown on the user's Twitter profile page.


isBackgroundImageTiled

public boolean isBackgroundImageTiled()
Whether or not the background image is tiled.


getTextColor

public java.lang.String getTextColor()
The text color on the user's Twitter profile page.


getLinkColor

public java.lang.String getLinkColor()
The link color on the user's Twitter profile page.


showAllInlineMedia

public boolean showAllInlineMedia()
Whether or not the user has selected to see all inline media from everyone. If false, they will only see inline media from the users they follow.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Spring Social Twitter