org.springframework.social.twitter.api
Class TwitterProfile

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

public class TwitterProfile
extends TwitterObject
implements Serializable

Model class representing a Twitter user's profile information.

See Also:
Serialized Form

Constructor Summary
TwitterProfile(long id, String screenName, String name, String url, String profileImageUrl, String description, String location, Date createdDate)
           
 
Method Summary
 boolean equals(Object o)
           
 String getBackgroundColor()
          The color of the background of the user's Twitter profile page.
 String getBackgroundImageUrl()
          The URL to a background image shown on the user's Twitter profile page.
 Date getCreatedDate()
          The date that the Twitter profile was created.
 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
 String getLanguage()
          The user's preferred language.
 String getLinkColor()
          The link color on the user's Twitter profile page.
 int getListedCount()
          The number of lists the user is listed on.
 String getLocation()
          The user's location
 String getName()
          The user's full name
 String getProfileImageUrl()
           The URL of the user's profile image in "normal" size (48x48).
 String getProfileUrl()
           The URL of the user's profile.
 String getScreenName()
          The user's Twitter screen name
static long getSerialversionuid()
           
 String getSidebarBorderColor()
          The color of the sidebar border on the user's Twitter profile page.
 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.
 String getTextColor()
          The text color on the user's Twitter profile page.
 String getTimeZone()
          The user's time zone.
 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 org.springframework.social.twitter.api.TwitterObject
add, getExtraData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterProfile

public TwitterProfile(long id,
                      String screenName,
                      String name,
                      String url,
                      String profileImageUrl,
                      String description,
                      String location,
                      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 String getScreenName()
The user's Twitter screen name

Returns:
The user's Twitter screen name

getName

public String getName()
The user's full name

Returns:
The user's full name

getUrl

public String getUrl()
The user's URL

Returns:
The user's URL

getDescription

public String getDescription()
The user's description

Returns:
The user's description

getLocation

public String getLocation()
The user's location

Returns:
The user's location

getProfileImageUrl

public 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 String getProfileUrl()

The URL of the user's profile.

Returns:
The URL of the user's profile.

getCreatedDate

public 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 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 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 String getSidebarBorderColor()
The color of the sidebar border on the user's Twitter profile page.


getSidebarFillColor

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


getBackgroundColor

public 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 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 String getTextColor()
The text color on the user's Twitter profile page.


getLinkColor

public 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(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object