public class CurrentUser extends PrivateUser
APPLICATION_ID
Constructor and Description |
---|
CurrentUser(PrivateUser user) |
CurrentUser(java.lang.String userId,
java.lang.String displayName,
java.lang.String avatarUrl,
java.util.Map<java.lang.String,java.lang.String> identities,
java.util.Map<java.lang.String,java.lang.String> publicProperties,
java.util.Map<java.lang.String,java.lang.String> privateProperties,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
addIdentity(Identity identity,
CompletionCallback success,
Callback<ConflictUser> conflict,
FailureCallback failure)
Adds Identity for the specified provider.
|
void |
removeIdentity(java.lang.String providerId,
CompletionCallback callback,
FailureCallback failure)
Removes Identity for the specified provider.
|
void |
updateDetails(UserUpdate userUpdate,
CompletionCallback callback,
FailureCallback failure)
Requests a bulk change of properties for the current user.
|
getPrivateProperties
getAuthIdentities, getAvatarUrl, getBanInfo, getDisplayName, getId, getPublicProperties, isAnonymous, isApp, isVerified, toString
public CurrentUser(PrivateUser user)
public CurrentUser(java.lang.String userId, java.lang.String displayName, java.lang.String avatarUrl, java.util.Map<java.lang.String,java.lang.String> identities, java.util.Map<java.lang.String,java.lang.String> publicProperties, java.util.Map<java.lang.String,java.lang.String> privateProperties, java.lang.String password)
public void updateDetails(UserUpdate userUpdate, CompletionCallback callback, FailureCallback failure)
userUpdate
- Update parameter.callback
- A callback to indicate if this operation was successful.failure
- Failure callback. Called in case of error.public void addIdentity(Identity identity, CompletionCallback success, Callback<ConflictUser> conflict, FailureCallback failure)
identity
- Identity to be added.success
- A callback to indicate if this operation was
successful or if there was a conflict.conflict
- Called if there was a conflict.failure
- Called if operation failed.public void removeIdentity(java.lang.String providerId, CompletionCallback callback, FailureCallback failure)
providerId
- The provider connected to an auth identity on the current user to remove.
Valid providerIds are found in AuthIdentityProviderIds
in addition to custom providers.callback
- A callback to indicate if this operation was successful.failure
- Failure callback. Called in case of error.(c) Copyright GetSocial BV, 2020. All Rights Reserved.