public final class User
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Adds custom properties to the user.
|
static User |
getCurrentUser()
Returns the object representing the current user.
|
void |
setEmail(java.lang.String email)
The user's email, to be used to display a gravatar.
|
void |
setFirstName(java.lang.String firstName)
The user's first name, to be used as part of the display name when sending messages.
|
void |
setLastName(java.lang.String lastName)
The user's last name, to be used as part of the display name when sending messages.
|
void |
setSignedUpAt(java.util.Date signedUpAt)
The date the user started using your service.
|
public static User getCurrentUser()
public void setEmail(java.lang.String email)
email
- The emailpublic void setFirstName(java.lang.String firstName)
firstName
- The first namepublic void setLastName(java.lang.String lastName)
lastName
- The last namepublic void setSignedUpAt(java.util.Date signedUpAt)
signedUpAt
- The sign up datepublic void addProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- Map of properties