public class User
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
User.Status
An enum indicating the join status of the user for a given network.
|
| Constructor and Description |
|---|
User(java.lang.String username,
java.lang.String userId,
java.lang.String name,
java.lang.String imageUrl,
User.Status joinStatus,
java.lang.String externalUserId)
constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getExternalUserId()
Get the external user id (Applicable only if using 3rd party login system).
|
java.lang.String |
getImageUrl()
Get the profile picture url of the user.
|
User.Status |
getJoinStatus()
Get the user joining status.
|
java.lang.String |
getName()
Get the name of the user.
|
java.lang.String |
getUserId()
Get the id of the user has provided while signing up.
|
java.lang.String |
getUsername()
Get the username which the user has provided while signing up.
|
int |
hashCode() |
java.lang.String |
toString() |
public User(java.lang.String username,
java.lang.String userId,
java.lang.String name,
java.lang.String imageUrl,
User.Status joinStatus,
java.lang.String externalUserId)
username - The username (email) of the useruserId - The unique id of the username - The name of the userimageUrl - The profile image url of the userjoinStatus - The enum indicating the join status of the userexternalUserId - The userId used by 3rd party login systems.public java.lang.String getUsername()
public java.lang.String getUserId()
public java.lang.String getName()
public java.lang.String getImageUrl()
public User.Status getJoinStatus()
User.Status indicating the join state of the user.public java.lang.String getExternalUserId()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object