public class FoursquareProfile extends OAuth20Profile
This class is the user profile for Foursquare with appropriate getters.
It is returned by the FoursquareClient
.
Method : | From the JSON profile response : |
---|---|
The attributes of the CommonProfile |
|
String getEmail() | null |
String getFirstName() | null |
String getFamilyName() | null |
Gender getGender() | Gender.UNSPECIFIED |
String getPictureUrl() | the profile_image_url attribute |
String getProfileUrl() | the url attribute |
String getLocation() | the location attribute |
More specific attributes | |
Boolean getContributorsEnabled() | the contributors_enabled attribute |
String getBio() | the bio attribute |
FoursquareUserContact getContact() | the contact attribute |
FoursquareUserFriends getFriends() | the friends attribute |
FoursquareUserPhoto getPhoto() | the photo attribute |
FoursquareClient
,
Serialized FormUSERNAME
logger, SEPARATOR
Constructor and Description |
---|
FoursquareProfile() |
Modifier and Type | Method and Description |
---|---|
protected AttributesDefinition |
getAttributesDefinition()
Return the attributes definition for this user profile.
|
String |
getBio() |
FoursquareUserContact |
getContact() |
String |
getEmail()
Return the email of the user.
|
String |
getFamilyName()
Return the family name of the user.
|
String |
getFirstName()
Return the first name of the user.
|
FoursquareUserFriends |
getFriends() |
String |
getLocation()
Return the location of the user.
|
FoursquareUserPhoto |
getPhoto() |
String |
getPictureUrl()
Return the url of the picture of the user.
|
String |
getProfileUrl()
Return the url of the profile of the user.
|
clear, getAccessToken, setAccessToken
getDisplayName, getGender, getLocale, getUsername
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 getBio()
public FoursquareUserContact getContact()
public FoursquareUserFriends getFriends()
public FoursquareUserPhoto getPhoto()
public String getFirstName()
CommonProfile
getFirstName
in class CommonProfile
public String getLocation()
CommonProfile
getLocation
in class CommonProfile
public String getFamilyName()
CommonProfile
getFamilyName
in class CommonProfile
public String getProfileUrl()
CommonProfile
getProfileUrl
in class CommonProfile
public String getPictureUrl()
CommonProfile
getPictureUrl
in class CommonProfile
public String getEmail()
CommonProfile
getEmail
in class CommonProfile
Copyright © 2016. All rights reserved.