Search in sources :

Example 1 with TrackedEntityInstanceEndPointCall

use of org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceEndPointCall in project dhis2-android-sdk by dhis2.

the class TrackedEntityInstanceCallFactory method create.

public static TrackedEntityInstanceEndPointCall create(Retrofit retrofit, DatabaseAdapter databaseAdapter, String trackedEntityInstanceUid) {
    TrackedEntityInstanceService trackedEntityInstanceService = retrofit.create(TrackedEntityInstanceService.class);
    TrackedEntityInstanceHandler trackedEntityInstanceHandler = HandlerFactory.createTrackedEntityInstanceHandler(databaseAdapter);
    ResourceHandler resourceHandler = HandlerFactory.createResourceHandler(databaseAdapter);
    TrackedEntityInstanceEndPointCall trackedEntityInstanceEndPointCall = new TrackedEntityInstanceEndPointCall(trackedEntityInstanceService, databaseAdapter, trackedEntityInstanceHandler, resourceHandler, new Date(), trackedEntityInstanceUid);
    return trackedEntityInstanceEndPointCall;
}
Also used : ResourceHandler(org.hisp.dhis.android.core.resource.ResourceHandler) TrackedEntityInstanceEndPointCall(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceEndPointCall) TrackedEntityInstanceHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceHandler) TrackedEntityInstanceService(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceService) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 ResourceHandler (org.hisp.dhis.android.core.resource.ResourceHandler)1 TrackedEntityInstanceEndPointCall (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceEndPointCall)1 TrackedEntityInstanceHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceHandler)1 TrackedEntityInstanceService (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceService)1