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);
}
Aggregations