Class ProfileEditPresenter<T extends ProfileEditView>

  • All Implemented Interfaces:
    com.cheetahdigital.uikit.architecture.mvp.MvpPresenter<T>

    public class ProfileEditPresenter<T extends ProfileEditView>
    extends ProfilePresenter<T>
    This presenter class contains StellarSDK calls for the Profile Module. This is a child class of the ProfilePresenter which is bound to the ProfileEditView.
    • Constructor Detail

      • ProfileEditPresenter

        public ProfileEditPresenter()
        Basic Constructor
      • ProfileEditPresenter

        public ProfileEditPresenter​(ProfileParams params)
        Public Constructor accepting parameters
        Parameters:
        params - ProfileParams
    • Method Detail

      • updateAvatar

        public void updateAvatar​(com.cheetahdigital.uikit.helper.video.MediaFile imageFile)
        Updates the avatar
        Parameters:
        imageFile - new avatar
      • updateAvatar

        public void updateAvatar​(com.cheetahdigital.uikit.helper.video.MediaFile imageFile,
                                 ProfileParams params)
        Updates the avatar
        Parameters:
        imageFile - new avatar
        params - ProfileParams
      • onUpdateAvatarFailure

        protected void onUpdateAvatarFailure​(java.lang.String error)
        Called when update avatar fails
        Parameters:
        error - error message
      • onUpdateAvatarSuccess

        protected void onUpdateAvatarSuccess​(Avatar data)
        Called when update avatar is successful
        Parameters:
        data - Avatar
      • onUpdateProfileFailure

        protected void onUpdateProfileFailure​(java.lang.String error)
        Called when update profile fails
        Parameters:
        error - error message
      • onUpdateProfileSuccess

        protected void onUpdateProfileSuccess​(MemberAttributes data)
        Called when update profile is successful
        Parameters:
        data - MemberAttributes