com.kii.cloud.storage.callback
Class KiiUserCallBack

java.lang.Object
  extended by com.kii.cloud.storage.callback.KiiUserCallBack

public abstract class KiiUserCallBack
extends java.lang.Object

Defines the call back interfaces for KiiUser.


Constructor Summary
KiiUserCallBack()
           
 
Method Summary
 void onChangeEmailCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.changeEmail(KiiUserCallBack, String) has been executed.
After the change succeeded, KiiUser.getCurrentUser() will returns updated logged in user.
 void onChangePasswordCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.changePassword(KiiUserCallBack, String, String) has been executed.
 void onChangePhoneCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.changePhone(KiiUserCallBack, String) has been executed.
After the change succeeded, KiiUser.getCurrentUser() will returns updated logged in user.
 void onDeleteCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.delete(KiiUserCallBack) has been executed.
 void onFindCompleted(int token, KiiUser caller, KiiUser found, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.findUserByEmail(String), KiiUser.findUserByPhone(String), KiiUser.findUserByUserName(String) has been executed.
 void onLoginCompleted(int token, KiiUser user, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.logIn(KiiUserCallBack, String, String)
or KiiUser.loginWithToken(KiiUserCallBack, String) has been executed.
 void onMemberOfGroupsCompleted(int token, KiiUser user, java.util.List<KiiGroup> groupList, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.memberOfGroups() has been executed.
 void onRefreshCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.refresh(KiiUserCallBack) has been executed.
 void onRegisterCompleted(int token, KiiUser user, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser#register(KiiUserCallBack, String, String) has been executed.
 void onRequestResendEmailVerificationCodeCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser#requestResendEmailVerificationCode(KiiUserCallBack) has been executed.
 void onRequestResendPhoneVerificationCodeCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.requestResendPhoneVerificationCode(KiiUserCallBack) has been executed.
 void onResetPasswordCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.resetPassword(KiiUserCallBack, String) has been executed.
 void onTaskCancel(int token)
          Runs on the UI thread after the task has been canceled.
 void onTaskStart(int token)
          Runs on the UI thread before the task is executed.
 void onUpdateCompleted(int token, KiiUser user, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.update(KiiUserCallBack) has been executed.
 void onVerifyPhoneCompleted(int token, java.lang.Exception exception)
          Runs on the UI thread after the KiiUser.verifyPhone(KiiUserCallBack, String) has been executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KiiUserCallBack

public KiiUserCallBack()
Method Detail

onChangeEmailCompleted

public void onChangeEmailCompleted(int token,
                                   java.lang.Exception exception)
Runs on the UI thread after the KiiUser.changeEmail(KiiUserCallBack, String) has been executed.
After the change succeeded, KiiUser.getCurrentUser() will returns updated logged in user.

Parameters:
token - task id of this operation
exception - null when succeeded.

onChangePasswordCompleted

public void onChangePasswordCompleted(int token,
                                      java.lang.Exception exception)
Runs on the UI thread after the KiiUser.changePassword(KiiUserCallBack, String, String) has been executed.


onChangePhoneCompleted

public void onChangePhoneCompleted(int token,
                                   java.lang.Exception exception)
Runs on the UI thread after the KiiUser.changePhone(KiiUserCallBack, String) has been executed.
After the change succeeded, KiiUser.getCurrentUser() will returns updated logged in user.

Parameters:
token - task id of this operation
exception - null when succeeded.

onDeleteCompleted

public void onDeleteCompleted(int token,
                              java.lang.Exception exception)
Runs on the UI thread after the KiiUser.delete(KiiUserCallBack) has been executed.


onFindCompleted

public void onFindCompleted(int token,
                            KiiUser caller,
                            KiiUser found,
                            java.lang.Exception exception)
Runs on the UI thread after the KiiUser.findUserByEmail(String), KiiUser.findUserByPhone(String), KiiUser.findUserByUserName(String) has been executed.

Parameters:
token - task id
caller - KiiUser call this task.
found - KiiUser matched with the email, phone or user name. null If no user matched or Exception occurred.
exception -

onLoginCompleted

public void onLoginCompleted(int token,
                             KiiUser user,
                             java.lang.Exception exception)
Runs on the UI thread after the KiiUser.logIn(KiiUserCallBack, String, String)
or KiiUser.loginWithToken(KiiUserCallBack, String) has been executed.


onMemberOfGroupsCompleted

public void onMemberOfGroupsCompleted(int token,
                                      KiiUser user,
                                      java.util.List<KiiGroup> groupList,
                                      java.lang.Exception exception)
Runs on the UI thread after the KiiUser.memberOfGroups() has been executed.

Parameters:
token - task id of this operation.
user - KiiUser which is belongs to returned groupList.
groupList - List of groups which the user is a member of.
exception - null when succeeded.

onRefreshCompleted

public void onRefreshCompleted(int token,
                               java.lang.Exception exception)
Runs on the UI thread after the KiiUser.refresh(KiiUserCallBack) has been executed.


onRegisterCompleted

public void onRegisterCompleted(int token,
                                KiiUser user,
                                java.lang.Exception exception)
Runs on the UI thread after the KiiUser#register(KiiUserCallBack, String, String) has been executed.


onRequestResendEmailVerificationCodeCompleted

public void onRequestResendEmailVerificationCodeCompleted(int token,
                                                          java.lang.Exception exception)
Runs on the UI thread after the KiiUser#requestResendEmailVerificationCode(KiiUserCallBack) has been executed.

Parameters:
token - task id of this operation
exception - null when succeeded.

onRequestResendPhoneVerificationCodeCompleted

public void onRequestResendPhoneVerificationCodeCompleted(int token,
                                                          java.lang.Exception exception)
Runs on the UI thread after the KiiUser.requestResendPhoneVerificationCode(KiiUserCallBack) has been executed.

Parameters:
token - task id of this operation
exception - null when succeeded.

onResetPasswordCompleted

public void onResetPasswordCompleted(int token,
                                     java.lang.Exception exception)
Runs on the UI thread after the KiiUser.resetPassword(KiiUserCallBack, String) has been executed.


onTaskCancel

public void onTaskCancel(int token)
Runs on the UI thread after the task has been canceled.


onTaskStart

public void onTaskStart(int token)
Runs on the UI thread before the task is executed.


onUpdateCompleted

public void onUpdateCompleted(int token,
                              KiiUser user,
                              java.lang.Exception exception)
Runs on the UI thread after the KiiUser.update(KiiUserCallBack) has been executed.


onVerifyPhoneCompleted

public void onVerifyPhoneCompleted(int token,
                                   java.lang.Exception exception)
Runs on the UI thread after the KiiUser.verifyPhone(KiiUserCallBack, String) has been executed.