Search in sources :

Example 6 with ListPhotoModel

use of com.ushahidi.android.app.models.ListPhotoModel in project Ushahidi_Android by ushahidi.

the class UploadPhotoAdapter method refresh.

public void refresh(int reportId) {
    mListPhotoModel = new ListPhotoModel();
    items = mListPhotoModel.getPendingPhotosByReportId(reportId);
    this.setItems(items);
}
Also used : ListPhotoModel(com.ushahidi.android.app.models.ListPhotoModel)

Example 7 with ListPhotoModel

use of com.ushahidi.android.app.models.ListPhotoModel in project Ushahidi_Android by ushahidi.

the class UploadPhotoAdapter method pendingPhotos.

public List<File> pendingPhotos(int reportId) {
    mListPhotoModel = new ListPhotoModel();
    items = mListPhotoModel.getPendingPhotosByReportId(reportId);
    return getPhotos(items);
}
Also used : ListPhotoModel(com.ushahidi.android.app.models.ListPhotoModel)

Aggregations

ListPhotoModel (com.ushahidi.android.app.models.ListPhotoModel)7 PhotoEntity (com.ushahidi.android.app.entities.PhotoEntity)1