use of com.ushahidi.android.app.entities.PhotoEntity in project Ushahidi_Android by ushahidi.
the class ListPhotoModel method getPhotosByCheckinId.
public List<PhotoEntity> getPhotosByCheckinId(int checkinId) {
mPhotoModel = new ArrayList<PhotoEntity>();
mMedia = Database.mMediaDao.fetchCheckinPhoto(checkinId);
if (mMedia != null && mMedia.size() > 0) {
for (MediaEntity item : mMedia) {
PhotoEntity photo = new PhotoEntity();
photo.setDbId(item.getDbId());
photo.setPhoto(item.getLink());
mPhotoModel.add(photo);
}
}
return mPhotoModel;
}
Aggregations