Search in sources :

Example 1 with RequestUserAvatarDelete

use of net.iGap.request.RequestUserAvatarDelete in project iGap-Android by KianIranian-STDG.

the class FragmentShowAvatars method deletePhotoSetting.

// ******************************************************************************************************
private void deletePhotoSetting() {
    G.onUserAvatarDelete = new OnUserAvatarDelete() {

        @Override
        public void onUserAvatarDelete(long avatarId, String token) {
            AvatarHandler.clearCacheForOwnerId(avatarId);
            if (onComplete != null)
                onComplete.complete(true, "" + avatarId, "");
        }

        @Override
        public void onUserAvatarDeleteError() {
        }
    };
    if (viewPager.getCurrentItem() >= avatarList.size()) {
        return;
    }
    new RequestUserAvatarDelete().userAvatarDelete(avatarList.get(viewPager.getCurrentItem()).getId());
}
Also used : OnUserAvatarDelete(net.iGap.observers.interfaces.OnUserAvatarDelete) RequestUserAvatarDelete(net.iGap.request.RequestUserAvatarDelete)

Aggregations

OnUserAvatarDelete (net.iGap.observers.interfaces.OnUserAvatarDelete)1 RequestUserAvatarDelete (net.iGap.request.RequestUserAvatarDelete)1