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()
StitchUserProfile
getName
in interface StitchUserProfile
public String getEmail()
StitchUserProfile
getEmail
in interface StitchUserProfile
public String getPictureUrl()
StitchUserProfile
getPictureUrl
in interface StitchUserProfile
public String getFirstName()
StitchUserProfile
getFirstName
in interface StitchUserProfile
public String getLastName()
StitchUserProfile
getLastName
in interface StitchUserProfile
public String getGender()
StitchUserProfile
getGender
in interface StitchUserProfile
public String getBirthday()
StitchUserProfile
getBirthday
in interface StitchUserProfile
public String getMinAge()
getMinAge
in interface StitchUserProfile
public String getMaxAge()
getMaxAge
in interface StitchUserProfile
public List<? extends StitchUserIdentity> getIdentities()