Search in sources :

Example 1 with CategoriesApi

use of com.ushahidi.android.app.api.CategoriesApi in project Ushahidi_Android by ushahidi.

the class FetchReports method executeTask.

@Override
protected void executeTask(Intent intent) {
    new Util().log("executeTask() executing this task");
    clearCachedData();
    ApiUtils.updateDomain(this);
    // fetch categories
    new CategoriesApi().getCategoriesList();
    // fetch reports
    status = new ReportsApi().saveReports(this) ? 0 : 99;
    statusIntent.putExtra("status", status);
    sendBroadcast(statusIntent);
}
Also used : ReportsApi(com.ushahidi.android.app.api.ReportsApi) CategoriesApi(com.ushahidi.android.app.api.CategoriesApi) Util(com.ushahidi.android.app.util.Util)

Aggregations

CategoriesApi (com.ushahidi.android.app.api.CategoriesApi)1 ReportsApi (com.ushahidi.android.app.api.ReportsApi)1 Util (com.ushahidi.android.app.util.Util)1