Search in sources :

Example 1 with RequestGroupAvatarDelete

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());
}
Also used : OnGroupAvatarDelete(net.iGap.observers.interfaces.OnGroupAvatarDelete) RequestGroupAvatarDelete(net.iGap.request.RequestGroupAvatarDelete)

Aggregations

OnGroupAvatarDelete (net.iGap.observers.interfaces.OnGroupAvatarDelete)1 RequestGroupAvatarDelete (net.iGap.request.RequestGroupAvatarDelete)1