public class StitchUserProfileImpl extends Object implements StitchUserProfile
| Modifier | Constructor and Description |
|---|---|
protected |
StitchUserProfileImpl(StitchUserProfileImpl profile) |
|
StitchUserProfileImpl(UserType userType,
Map<String,String> data,
List<? extends StitchUserIdentity> identities)
Constructs a user profile.
|
| Modifier and Type | Method and Description |
|---|---|
static StitchUserProfileImpl |
empty() |
String |
getBirthday()
Returns the birthday of the user.
|
Map<String,String> |
getData() |
String |
getEmail()
Returns the email of the user.
|
String |
getFirstName()
Returns the first name of the user.
|
String |
getGender()
Returns the gender of the user.
|
List<? extends StitchUserIdentity> |
getIdentities() |
String |
getLastName()
Returns the last name of the user.
|
String |
getMaxAge()
Get the maximum age of this user; may be null.
|
String |
getMinAge()
Get the minimum age of this user; may be null.
|
String |
getName()
Returns the name of the user.
|
String |
getPictureUrl()
Returns the url to a picture of the user.
|
UserType |
getUserType() |
protected StitchUserProfileImpl(StitchUserProfileImpl profile)
public StitchUserProfileImpl(UserType userType, Map<String,String> data, List<? extends StitchUserIdentity> identities)
userType - the type of the user.data - the profile data of the user.identities - the identities associated with a user.public static StitchUserProfileImpl empty()
public UserType getUserType()
public String getName()
StitchUserProfilegetName in interface StitchUserProfilepublic String getEmail()
StitchUserProfilegetEmail in interface StitchUserProfilepublic String getPictureUrl()
StitchUserProfilegetPictureUrl in interface StitchUserProfilepublic String getFirstName()
StitchUserProfilegetFirstName in interface StitchUserProfilepublic String getLastName()
StitchUserProfilegetLastName in interface StitchUserProfilepublic String getGender()
StitchUserProfilegetGender in interface StitchUserProfilepublic String getBirthday()
StitchUserProfilegetBirthday in interface StitchUserProfilepublic String getMinAge()
getMinAge in interface StitchUserProfilepublic String getMaxAge()
getMaxAge in interface StitchUserProfilepublic List<? extends StitchUserIdentity> getIdentities()