Search in sources :

Example 1 with EnrollmentImportHandler

use of org.hisp.dhis.android.core.enrollment.EnrollmentImportHandler in project dhis2-android-sdk by dhis2.

the class TrackedEntityInstancePostCall method handleWebResponse.

private void handleWebResponse(Response<WebResponse> response) {
    WebResponse webResponse = response.body();
    EventImportHandler eventImportHandler = new EventImportHandler(eventStore);
    EnrollmentImportHandler enrollmentImportHandler = new EnrollmentImportHandler(enrollmentStore, eventImportHandler);
    TrackedEntityInstanceImportHandler trackedEntityInstanceImportHandler = new TrackedEntityInstanceImportHandler(trackedEntityInstanceStore, enrollmentImportHandler, eventImportHandler);
    WebResponseHandler webResponseHandler = new WebResponseHandler(trackedEntityInstanceImportHandler);
    webResponseHandler.handleWebResponse(webResponse);
}
Also used : TrackedEntityInstanceImportHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceImportHandler) WebResponse(org.hisp.dhis.android.core.imports.WebResponse) EventImportHandler(org.hisp.dhis.android.core.event.EventImportHandler) WebResponseHandler(org.hisp.dhis.android.core.imports.WebResponseHandler) EnrollmentImportHandler(org.hisp.dhis.android.core.enrollment.EnrollmentImportHandler)

Aggregations

EnrollmentImportHandler (org.hisp.dhis.android.core.enrollment.EnrollmentImportHandler)1 EventImportHandler (org.hisp.dhis.android.core.event.EventImportHandler)1 WebResponse (org.hisp.dhis.android.core.imports.WebResponse)1 WebResponseHandler (org.hisp.dhis.android.core.imports.WebResponseHandler)1 TrackedEntityInstanceImportHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceImportHandler)1