Class StitchUserProfileImpl
- java.lang.Object
-
- com.mongodb.stitch.core.auth.internal.StitchUserProfileImpl
-
- All Implemented Interfaces:
StitchUserProfile
- Direct Known Subclasses:
ApiCoreUserProfile
public class StitchUserProfileImpl extends Object implements StitchUserProfile
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StitchUserProfileImpl(StitchUserProfileImpl profile)
StitchUserProfileImpl(UserType userType, Map<String,String> data, List<? extends StitchUserIdentity> identities)
Constructs a user profile.
-
Method Summary
Modifier and Type Method 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()
-
-
-
Constructor Detail
-
StitchUserProfileImpl
protected StitchUserProfileImpl(StitchUserProfileImpl profile)
-
StitchUserProfileImpl
public StitchUserProfileImpl(UserType userType, Map<String,String> data, List<? extends StitchUserIdentity> identities)
Constructs a user profile.- Parameters:
userType
- the type of the user.data
- the profile data of the user.identities
- the identities associated with a user.
-
-
Method Detail
-
empty
public static StitchUserProfileImpl empty()
-
getUserType
public UserType getUserType()
-
getName
public String getName()
Description copied from interface:StitchUserProfile
Returns the name of the user.- Specified by:
getName
in interfaceStitchUserProfile
- Returns:
- the name of the user.
-
getEmail
public String getEmail()
Description copied from interface:StitchUserProfile
Returns the email of the user.- Specified by:
getEmail
in interfaceStitchUserProfile
- Returns:
- the email of the user.
-
getPictureUrl
public String getPictureUrl()
Description copied from interface:StitchUserProfile
Returns the url to a picture of the user.- Specified by:
getPictureUrl
in interfaceStitchUserProfile
- Returns:
- the url to a picture of the user.
-
getFirstName
public String getFirstName()
Description copied from interface:StitchUserProfile
Returns the first name of the user.- Specified by:
getFirstName
in interfaceStitchUserProfile
- Returns:
- the first name of the user.
-
getLastName
public String getLastName()
Description copied from interface:StitchUserProfile
Returns the last name of the user.- Specified by:
getLastName
in interfaceStitchUserProfile
- Returns:
- the last name of the user.
-
getGender
public String getGender()
Description copied from interface:StitchUserProfile
Returns the gender of the user.- Specified by:
getGender
in interfaceStitchUserProfile
- Returns:
- the gender of the user.
-
getBirthday
public String getBirthday()
Description copied from interface:StitchUserProfile
Returns the birthday of the user.- Specified by:
getBirthday
in interfaceStitchUserProfile
- Returns:
- the birthday of the user.
-
getMinAge
public String getMinAge()
Get the minimum age of this user; may be null.- Specified by:
getMinAge
in interfaceStitchUserProfile
- Returns:
- the minmum age of the user.
-
getMaxAge
public String getMaxAge()
Get the maximum age of this user; may be null.- Specified by:
getMaxAge
in interfaceStitchUserProfile
- Returns:
- the maximum age of the user.
-
getIdentities
public List<? extends StitchUserIdentity> getIdentities()
-
-