public class PublicUser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PublicUser.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.util.Map<java.lang.String,java.lang.String> |
getAllPublicProperties()
Get all public properties of user.
|
java.util.Map<java.lang.String,java.lang.String> |
getAuthIdentities()
Returns all auth identities added to the user.
|
java.lang.String |
getAvatarUrl()
User avatar url.
|
java.lang.String |
getDisplayName()
User display name.
|
java.lang.String |
getId()
Unique identifier.
|
java.util.Map<java.lang.String,java.lang.String> |
getIdentities()
Deprecated.
Use
getAuthIdentities() instead. |
java.lang.String |
getPublicProperty(java.lang.String key)
Get public property for specified key.
|
int |
hashCode() |
boolean |
hasPublicProperty(java.lang.String key)
Check if user has public property for specified key.
|
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getIdentities()
getAuthIdentities()
instead.public java.util.Map<java.lang.String,java.lang.String> getAuthIdentities()
AuthIdentity.createCustomIdentity(String, String, String)
or AuthIdentityProviderIds.FACEBOOK
if you've created Facebook identity with AuthIdentity.createFacebookIdentity(String)
.
Read more about identities in the documentation.
The value(userId) is the second parameter in AuthIdentity.createCustomIdentity(String, String, String)
or automatically obtained by GetSocial if you've used Facebook identity.public boolean hasPublicProperty(java.lang.String key)
key
- Property key.public java.lang.String getPublicProperty(java.lang.String key)
key
- Property key.public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getAllPublicProperties()
public java.lang.String getDisplayName()
public java.lang.String getAvatarUrl()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
(c) Copyright GetSocial BV, 2020. All Rights Reserved.