Package com.kii.cloud.storage.callback
Class KiiGroupCallBack
- java.lang.Object
-
- com.kii.cloud.storage.callback.KiiGroupCallBack
-
public abstract class KiiGroupCallBack extends java.lang.Object
Defines the call back interfaces forKiiObject
.
-
-
Constructor Summary
Constructors Constructor Description KiiGroupCallBack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onChangeNameCompleted(int token, KiiGroup group, java.lang.Exception exception)
Notify completion of change naem of the group to the cloud.void
onDeleteCompleted(int token, java.lang.Exception exception)
Notify completion of deleting the group.void
onGetOwnerCompleted(int token, KiiGroup group, KiiUser owner, java.lang.Exception e)
Notify completion of get owner of the groupvoid
onListMembersCompleted(int token, java.util.List<KiiUser> members, KiiGroup group, java.lang.Exception exception)
Notify completion of getting the members list of the group.void
onRefreshCompleted(int token, KiiGroup group, java.lang.Exception exception)
Notify completion of refresh the group.void
onSaveCompleted(int token, KiiGroup group, java.lang.Exception exception)
Notify completion of saving the group to the cloud.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.
-
-
-
Method Detail
-
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.
-
onGetOwnerCompleted
public void onGetOwnerCompleted(int token, @NonNull KiiGroup group, @Nullable KiiUser owner, @Nullable java.lang.Exception e)
Notify completion of get owner of the group- Parameters:
token
- task idgroup
- Group which executeKiiGroup.getOwner(KiiGroupCallBack)
owner
- Owner of this groupe
- Exception if operation failed. null if succeeded.
-
onListMembersCompleted
public void onListMembersCompleted(int token, @Nullable java.util.List<KiiUser> members, @NonNull KiiGroup group, @Nullable java.lang.Exception exception)
Notify completion of getting the members list of the group.- Parameters:
token
- task idmembers
- Member list.group
- KiiGroup which members are retrieved.exception
- Exception if operation failed. null if succeeded.
-
onSaveCompleted
public void onSaveCompleted(int token, @NonNull KiiGroup group, @Nullable java.lang.Exception exception)
Notify completion of saving the group to the cloud.- Parameters:
token
- task idgroup
- KiiGroup that is saved to the cloud.exception
-GroupOperationException
if operation failed. null if succeeded.
-
onChangeNameCompleted
public void onChangeNameCompleted(int token, @NonNull KiiGroup group, @Nullable java.lang.Exception exception)
Notify completion of change naem of the group to the cloud.- Parameters:
token
- task idgroup
- KiiGroup which name is updated to the cloud.exception
-GroupOperationException
if operation failed. null if succeeded.
-
onRefreshCompleted
public void onRefreshCompleted(int token, @NonNull KiiGroup group, @Nullable java.lang.Exception exception)
Notify completion of refresh the group.- Parameters:
token
- task idgroup
- KiiGroup that is saved to the cloud.exception
- Exception if operation failed. null if succeeded.
-
onDeleteCompleted
public void onDeleteCompleted(int token, @Nullable java.lang.Exception exception)
Notify completion of deleting the group.- Parameters:
token
- task idexception
- Exception if operation failed. null if succeeded.
-
-