use of org.hisp.dhis.android.core.event.EventStoreImpl in project dhis2-android-sdk by dhis2.
the class TrackedEntityInstancePostCallRealIntegrationShould method getEventsFromDb.
private Event getEventsFromDb(String eventUid) {
EventStoreImpl eventStore = new EventStoreImpl(databaseAdapter());
Event event = null;
List<Event> storedEvents = eventStore.queryAll();
for (Event storedEvent : storedEvents) {
if (storedEvent.uid().equals(eventUid)) {
event = storedEvent;
}
}
return event;
}
Aggregations