Search in sources :

Example 1 with OnGetWallpaper

use of net.iGap.observers.interfaces.OnGetWallpaper in project iGap-Android by KianIranian-STDG.

the class ChatBackgroundViewModel method getImageListFromServer.

private void getImageListFromServer() {
    showLoadingView.set(View.VISIBLE);
    G.onGetWallpaper = new OnGetWallpaper() {

        @Override
        public void onGetWallpaperList(final List<ProtoGlobal.Wallpaper> list) {
            RealmWallpaper.updateField(list, "", ProtoInfoWallpaper.InfoWallpaper.Type.CHAT_BACKGROUND_VALUE);
            fillList(false);
            showLoadingView.set(View.GONE);
        }
    };
    new RequestInfoWallpaper().infoWallpaper(ProtoInfoWallpaper.InfoWallpaper.Type.CHAT_BACKGROUND);
}
Also used : RequestInfoWallpaper(net.iGap.request.RequestInfoWallpaper) OnGetWallpaper(net.iGap.observers.interfaces.OnGetWallpaper) ProtoInfoWallpaper(net.iGap.proto.ProtoInfoWallpaper) RealmWallpaper(net.iGap.realm.RealmWallpaper) RequestInfoWallpaper(net.iGap.request.RequestInfoWallpaper) OnGetWallpaper(net.iGap.observers.interfaces.OnGetWallpaper) StructWallpaper(net.iGap.module.StructWallpaper)

Aggregations

StructWallpaper (net.iGap.module.StructWallpaper)1 OnGetWallpaper (net.iGap.observers.interfaces.OnGetWallpaper)1 ProtoInfoWallpaper (net.iGap.proto.ProtoInfoWallpaper)1 RealmWallpaper (net.iGap.realm.RealmWallpaper)1 RequestInfoWallpaper (net.iGap.request.RequestInfoWallpaper)1