Class UserUpdate


  • public class UserUpdate
    extends java.lang.Object
    Composite data class used for batch update of properties of current user.
    • Constructor Detail

      • UserUpdate

        public UserUpdate()
    • 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 with updateAvatar(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 with updateAvatarUrl(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 key
        increment - 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 key
        decrement - 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 key
        increment - 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 key
        decrement - 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)