use of org.hisp.dhis.android.core.category.CategoryComboHandler 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;
}
use of org.hisp.dhis.android.core.category.CategoryComboHandler in project dhis2-android-sdk by dhis2.
the class HandlerFactory method createCategoryComboHandler.
public static CategoryComboHandler createCategoryComboHandler(DatabaseAdapter databaseAdapter) {
CategoryCategoryComboLinkStore categoryCategoryComboLinkStore = new CategoryCategoryComboLinkStoreImpl(databaseAdapter);
CategoryOptionComboStore optionComboStore = new CategoryOptionComboStoreImpl(databaseAdapter);
CategoryOptionComboHandler optionComboHandler = new CategoryOptionComboHandler(optionComboStore);
CategoryComboStore store = new CategoryComboStoreImpl(databaseAdapter);
CategoryOptionComboCategoryLinkStore categoryComboOptionLinkCategoryStore = new CategoryOptionComboCategoryLinkStoreImpl(databaseAdapter);
CategoryComboHandler categoryComboHandler = new CategoryComboHandler(store, categoryComboOptionLinkCategoryStore, categoryCategoryComboLinkStore, optionComboHandler);
return categoryComboHandler;
}
Aggregations