Search in sources :

Example 1 with CategoryComboQuery

use of org.hisp.dhis.android.core.category.CategoryComboQuery in project dhis2-android-sdk by dhis2.

the class CategoryComboCallFactory method create.

@NonNull
public static CategoryComboEndpointCall create(Retrofit retrofit, DatabaseAdapter databaseAdapter) {
    CategoryComboService categoryComboService = retrofit.create(CategoryComboService.class);
    ResponseValidator<CategoryCombo> categoryComboResponseValidator = new ResponseValidator<>();
    CategoryComboHandler categoryComboHandler = HandlerFactory.createCategoryComboHandler(databaseAdapter);
    ResourceHandler resourceHandler = HandlerFactory.createResourceHandler(databaseAdapter);
    CategoryComboQuery categoryComboQuery = CategoryComboQuery.defaultQuery();
    CategoryComboEndpointCall categoryComboEndpointCall = new CategoryComboEndpointCall(categoryComboQuery, categoryComboService, categoryComboResponseValidator, categoryComboHandler, resourceHandler, databaseAdapter, new Date());
    return categoryComboEndpointCall;
}
Also used : ResponseValidator(org.hisp.dhis.android.core.category.ResponseValidator) CategoryCombo(org.hisp.dhis.android.core.category.CategoryCombo) CategoryComboService(org.hisp.dhis.android.core.category.CategoryComboService) ResourceHandler(org.hisp.dhis.android.core.resource.ResourceHandler) CategoryComboQuery(org.hisp.dhis.android.core.category.CategoryComboQuery) CategoryComboEndpointCall(org.hisp.dhis.android.core.category.CategoryComboEndpointCall) CategoryComboHandler(org.hisp.dhis.android.core.category.CategoryComboHandler) Date(java.util.Date) NonNull(android.support.annotation.NonNull)

Aggregations

NonNull (android.support.annotation.NonNull)1 Date (java.util.Date)1 CategoryCombo (org.hisp.dhis.android.core.category.CategoryCombo)1 CategoryComboEndpointCall (org.hisp.dhis.android.core.category.CategoryComboEndpointCall)1 CategoryComboHandler (org.hisp.dhis.android.core.category.CategoryComboHandler)1 CategoryComboQuery (org.hisp.dhis.android.core.category.CategoryComboQuery)1 CategoryComboService (org.hisp.dhis.android.core.category.CategoryComboService)1 ResponseValidator (org.hisp.dhis.android.core.category.ResponseValidator)1 ResourceHandler (org.hisp.dhis.android.core.resource.ResourceHandler)1