Search in sources :

Example 1 with DataDownloadManager

use of org.fossasia.openevent.common.api.DataDownloadManager in project open-event-android by fossasia.

the class EventListResponseProcessor method onSuccess.

@Override
protected void onSuccess(Event event) {
    int counterRequests = 7;
    final DataDownloadManager download = DataDownloadManager.getInstance();
    StrategyRegistry.getInstance().getEventBusStrategy().postEventOnUIThread(new CounterEvent(counterRequests));
    save(event);
    download.downloadSession();
    download.downloadSpeakers();
    download.downloadTracks();
    download.downloadMicrolocations();
    download.downloadSponsors();
    download.downloadSessionTypes();
}
Also used : DataDownloadManager(org.fossasia.openevent.common.api.DataDownloadManager) CounterEvent(org.fossasia.openevent.common.events.CounterEvent)

Aggregations

DataDownloadManager (org.fossasia.openevent.common.api.DataDownloadManager)1 CounterEvent (org.fossasia.openevent.common.events.CounterEvent)1