public class YahooProfile extends OAuth10Profile
This class is the user profile for Yahoo with appropriate getters.
It is returned by the YahooClient
.
Method : | From the JSON profile response : |
---|---|
The attributes of the CommonProfile |
|
String getEmail() | the primary (or only one) email from the emails attribute |
String getFirstName() | the given_name attribute |
String getFamilyName() | the family_name attribute |
String getDisplayName() | the given_name attribute followed by a space and the family_name attribute |
String getUsername() | the nickname attribute |
Gender getGender() | the gender attribute |
Locale getLocale() | the lang attribute |
String getPictureUrl() | the imageUrl sub-attribute from the image attribute |
String getProfileUrl() | the profile_url attribute |
String getLocation() | the location attribute |
More specific attributes | |
String getAboutMe() | the aboutMe attribute |
List<YahooAddress> getAddresses() | the addresses attribute |
Integer getBirthYear() | the birthYear attribute |
Date getBirthdate() | the birthdate attribute |
Date getCreated() | the created attribute |
Integer getDisplayAge() | the displayAge attribute |
List<YahooDisclosure> getDisclosures() | the disclosures attribute |
List<YahooEmail> getEmails() | the emails attribute |
YahooImage getImage() | the image attribute |
List<YahooInterest> getInterests() | the interests attribute |
Boolean getIsConnected() | the isConnected attribute |
Date getMemberSince() | the memberSince attribute |
String getTimeZone() | the timeZone attribute |
Date getUpdated() | the updated attribute |
String getUri() | the uri attribute |
YahooClient
,
Serialized FormUSERNAME
logger, SEPARATOR
Constructor and Description |
---|
YahooProfile() |
Modifier and Type | Method and Description |
---|---|
String |
getAboutMe() |
List<YahooAddress> |
getAddresses() |
protected AttributesDefinition |
getAttributesDefinition()
Return the attributes definition for this user profile.
|
Date |
getBirthdate() |
Integer |
getBirthYear() |
Date |
getCreated() |
List<YahooDisclosure> |
getDisclosures() |
Integer |
getDisplayAge() |
String |
getDisplayName()
Return the displayed name of the user.
|
String |
getEmail()
Return the email of the user.
|
List<YahooEmail> |
getEmails() |
String |
getFamilyName()
Return the family name of the user.
|
String |
getFirstName()
Return the first name of the user.
|
YahooImage |
getImage() |
List<YahooInterest> |
getInterests() |
Boolean |
getIsConnected() |
Locale |
getLocale()
Return the locale of the user.
|
Date |
getMemberSince() |
String |
getPictureUrl()
Return the url of the picture of the user.
|
String |
getProfileUrl()
Return the url of the profile of the user.
|
String |
getTimeZone() |
Date |
getUpdated() |
String |
getUri() |
String |
getUsername()
Return the username of the user.
|
getAccessSecret, setAccessSecret
clear, getAccessToken, setAccessToken
getGender, getLocation
addAttribute, addAttributes, addPermission, addPermissions, addRole, addRoles, build, getAttribute, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, setId, setRemembered, toString, writeExternal
protected AttributesDefinition getAttributesDefinition()
UserProfile
getAttributesDefinition
in class UserProfile
public String getEmail()
CommonProfile
getEmail
in class CommonProfile
public String getFirstName()
CommonProfile
getFirstName
in class CommonProfile
public String getFamilyName()
CommonProfile
getFamilyName
in class CommonProfile
public String getDisplayName()
CommonProfile
getDisplayName
in class CommonProfile
public String getUsername()
CommonProfile
getUsername
in class CommonProfile
public Locale getLocale()
CommonProfile
getLocale
in class CommonProfile
public String getPictureUrl()
CommonProfile
getPictureUrl
in class CommonProfile
public String getProfileUrl()
CommonProfile
getProfileUrl
in class CommonProfile
public String getAboutMe()
public List<YahooAddress> getAddresses()
public Integer getBirthYear()
public Date getBirthdate()
public Date getCreated()
public Integer getDisplayAge()
public List<YahooDisclosure> getDisclosures()
public List<YahooEmail> getEmails()
public YahooImage getImage()
public List<YahooInterest> getInterests()
public Boolean getIsConnected()
public Date getMemberSince()
public String getTimeZone()
public Date getUpdated()
public String getUri()
Copyright © 2016. All rights reserved.