Package im.getsocial.sdk.communities
Class UserUpdate
- java.lang.Object
-
- im.getsocial.sdk.communities.UserUpdate
-
public class UserUpdate extends java.lang.Object
Composite data class used for batch update of properties of current user.
-
-
Constructor Summary
Constructors Constructor Description UserUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserUpdate
decrementPrivateProperty(java.lang.String key, java.lang.Double decrement)
Decrement a private property with the provided value.UserUpdate
decrementPublicProperty(java.lang.String key, java.lang.Double decrement)
Decrement a public property with the provided value.UserUpdate
incrementPrivateProperty(java.lang.String key, java.lang.Double increment)
Increment a private property with the provided value.UserUpdate
incrementPublicProperty(java.lang.String key, java.lang.Double increment)
Increment a public property with the provided value.UserUpdate
removePrivateProperty(java.lang.String key)
UserUpdate
removePublicProperty(java.lang.String key)
UserUpdate
setPrivateProperty(java.lang.String key, java.lang.String value)
UserUpdate
setPublicProperty(java.lang.String key, java.lang.String value)
UserUpdate
updateAvatar(android.graphics.Bitmap avatar)
Set the new avatar.UserUpdate
updateAvatarUrl(java.lang.String avatarUrl)
Set the avatar URL.UserUpdate
updateDisplayName(java.lang.String displayName)
-
-
-
Method Detail
-
updateDisplayName
public UserUpdate updateDisplayName(java.lang.String displayName)
-
updateAvatarUrl
public UserUpdate updateAvatarUrl(java.lang.String avatarUrl)
Set the avatar URL. Can not be used withupdateAvatar(Bitmap)
.- Parameters:
avatarUrl
- new avatar URL.- Returns:
- instance of
UserUpdate
to chain method calls.
-
updateAvatar
public UserUpdate updateAvatar(android.graphics.Bitmap avatar)
Set the new avatar. Can not be used withupdateAvatarUrl(String)
.- Parameters:
avatar
- new avatar.- Returns:
- instance of
UserUpdate
to chain method calls.
-
setPublicProperty
public UserUpdate setPublicProperty(java.lang.String key, java.lang.String value)
-
removePublicProperty
public UserUpdate removePublicProperty(java.lang.String key)
-
incrementPublicProperty
public UserUpdate incrementPublicProperty(java.lang.String key, java.lang.Double increment)
Increment a public property with the provided value.- Parameters:
key
- property keyincrement
- positive number- Returns:
- updated UserUpdate instance.
-
decrementPublicProperty
public UserUpdate decrementPublicProperty(java.lang.String key, java.lang.Double decrement)
Decrement a public property with the provided value.- Parameters:
key
- property keydecrement
- positive number- Returns:
- updated UserUpdate instance.
-
incrementPrivateProperty
public UserUpdate incrementPrivateProperty(java.lang.String key, java.lang.Double increment)
Increment a private property with the provided value.- Parameters:
key
- property keyincrement
- positive number- Returns:
- updated UserUpdate instance.
-
decrementPrivateProperty
public UserUpdate decrementPrivateProperty(java.lang.String key, java.lang.Double decrement)
Decrement a private property with the provided value.- Parameters:
key
- property keydecrement
- positive number- Returns:
- updated UserUpdate instance.
-
setPrivateProperty
public UserUpdate setPrivateProperty(java.lang.String key, java.lang.String value)
-
removePrivateProperty
public UserUpdate removePrivateProperty(java.lang.String key)
-
-