public class CurrentUser extends PrivateUser
APPLICATION_ID
Constructor and Description |
---|
CurrentUser(PrivateUser user) |
Modifier and Type | Method and Description |
---|---|
void |
addIdentity(Identity identity,
CompletionCallback success,
Callback<ConflictUser> conflict,
FailureCallback failure)
Adds Identity for the specified provider.
|
void |
refresh(CompletionCallback callback,
FailureCallback failure)
Refresh current user properties.
|
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.
|
getBanInfo, getPrivateProperties, isBanned, toString
getAvatarUrl, getDisplayName, getId, getIdentities, getPublicProperties, isAnonymous, isApp, isVerified
public CurrentUser(PrivateUser user)
public void updateDetails(UserUpdate userUpdate, CompletionCallback callback, FailureCallback failure)
userUpdate
- New user details.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.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 IdentityProviderIds
in addition to custom providers.callback
- A callback to indicate if this operation was successful.failure
- Failure callback. Called in case of error.public void refresh(CompletionCallback callback, FailureCallback failure)
callback
- A callback to indicate if this operation was successful.failure
- Failure callback. Called in case of error.(c) Copyright GetSocial BV, 2021. All Rights Reserved.