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 protectedStitchUserProfileImpl(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 StitchUserProfileImplempty()StringgetBirthday()Returns the birthday of the user.Map<String,String>getData()StringgetEmail()Returns the email of the user.StringgetFirstName()Returns the first name of the user.StringgetGender()Returns the gender of the user.List<? extends StitchUserIdentity>getIdentities()StringgetLastName()Returns the last name of the user.StringgetMaxAge()Get the maximum age of this user; may be null.StringgetMinAge()Get the minimum age of this user; may be null.StringgetName()Returns the name of the user.StringgetPictureUrl()Returns the url to a picture of the user.UserTypegetUserType()
-
-
-
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:StitchUserProfileReturns the name of the user.- Specified by:
getNamein interfaceStitchUserProfile- Returns:
- the name of the user.
-
getEmail
public String getEmail()
Description copied from interface:StitchUserProfileReturns the email of the user.- Specified by:
getEmailin interfaceStitchUserProfile- Returns:
- the email of the user.
-
getPictureUrl
public String getPictureUrl()
Description copied from interface:StitchUserProfileReturns the url to a picture of the user.- Specified by:
getPictureUrlin interfaceStitchUserProfile- Returns:
- the url to a picture of the user.
-
getFirstName
public String getFirstName()
Description copied from interface:StitchUserProfileReturns the first name of the user.- Specified by:
getFirstNamein interfaceStitchUserProfile- Returns:
- the first name of the user.
-
getLastName
public String getLastName()
Description copied from interface:StitchUserProfileReturns the last name of the user.- Specified by:
getLastNamein interfaceStitchUserProfile- Returns:
- the last name of the user.
-
getGender
public String getGender()
Description copied from interface:StitchUserProfileReturns the gender of the user.- Specified by:
getGenderin interfaceStitchUserProfile- Returns:
- the gender of the user.
-
getBirthday
public String getBirthday()
Description copied from interface:StitchUserProfileReturns the birthday of the user.- Specified by:
getBirthdayin interfaceStitchUserProfile- Returns:
- the birthday of the user.
-
getMinAge
public String getMinAge()
Get the minimum age of this user; may be null.- Specified by:
getMinAgein interfaceStitchUserProfile- Returns:
- the minmum age of the user.
-
getMaxAge
public String getMaxAge()
Get the maximum age of this user; may be null.- Specified by:
getMaxAgein interfaceStitchUserProfile- Returns:
- the maximum age of the user.
-
getIdentities
public List<? extends StitchUserIdentity> getIdentities()
-
-