use of net.iGap.request.RequestGroupAvatarDelete in project iGap-Android by KianIranian-STDG.
the class FragmentShowAvatars method deletePhotoGroup.
private void deletePhotoGroup() {
G.onGroupAvatarDelete = new OnGroupAvatarDelete() {
@Override
public void onDeleteAvatar(long roomId, final long avatarId) {
G.handler.post(new Runnable() {
@Override
public void run() {
if (onComplete != null) {
onComplete.complete(true, "" + avatarId, "");
}
}
});
}
@Override
public void onDeleteAvatarError(int majorCode, int minorCode) {
}
@Override
public void onTimeOut() {
}
};
if (viewPager.getCurrentItem() >= avatarList.size()) {
return;
}
new RequestGroupAvatarDelete().groupAvatarDelete(mPeerId, avatarList.get(viewPager.getCurrentItem()).getId());
}
Aggregations