Search in sources :

Example 1 with CategoryComboHandler

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;
}
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)

Example 2 with CategoryComboHandler

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;
}
Also used : CategoryOptionComboStore(org.hisp.dhis.android.core.category.CategoryOptionComboStore) CategoryOptionComboCategoryLinkStore(org.hisp.dhis.android.core.category.CategoryOptionComboCategoryLinkStore) CategoryOptionComboStoreImpl(org.hisp.dhis.android.core.category.CategoryOptionComboStoreImpl) CategoryCategoryComboLinkStore(org.hisp.dhis.android.core.category.CategoryCategoryComboLinkStore) CategoryOptionComboHandler(org.hisp.dhis.android.core.category.CategoryOptionComboHandler) CategoryOptionComboCategoryLinkStoreImpl(org.hisp.dhis.android.core.category.CategoryOptionComboCategoryLinkStoreImpl) CategoryCategoryComboLinkStoreImpl(org.hisp.dhis.android.core.category.CategoryCategoryComboLinkStoreImpl) CategoryComboStoreImpl(org.hisp.dhis.android.core.category.CategoryComboStoreImpl) CategoryComboHandler(org.hisp.dhis.android.core.category.CategoryComboHandler) CategoryComboStore(org.hisp.dhis.android.core.category.CategoryComboStore)

Aggregations

CategoryComboHandler (org.hisp.dhis.android.core.category.CategoryComboHandler)2 NonNull (android.support.annotation.NonNull)1 Date (java.util.Date)1 CategoryCategoryComboLinkStore (org.hisp.dhis.android.core.category.CategoryCategoryComboLinkStore)1 CategoryCategoryComboLinkStoreImpl (org.hisp.dhis.android.core.category.CategoryCategoryComboLinkStoreImpl)1 CategoryCombo (org.hisp.dhis.android.core.category.CategoryCombo)1 CategoryComboEndpointCall (org.hisp.dhis.android.core.category.CategoryComboEndpointCall)1 CategoryComboQuery (org.hisp.dhis.android.core.category.CategoryComboQuery)1 CategoryComboService (org.hisp.dhis.android.core.category.CategoryComboService)1 CategoryComboStore (org.hisp.dhis.android.core.category.CategoryComboStore)1 CategoryComboStoreImpl (org.hisp.dhis.android.core.category.CategoryComboStoreImpl)1 CategoryOptionComboCategoryLinkStore (org.hisp.dhis.android.core.category.CategoryOptionComboCategoryLinkStore)1 CategoryOptionComboCategoryLinkStoreImpl (org.hisp.dhis.android.core.category.CategoryOptionComboCategoryLinkStoreImpl)1 CategoryOptionComboHandler (org.hisp.dhis.android.core.category.CategoryOptionComboHandler)1 CategoryOptionComboStore (org.hisp.dhis.android.core.category.CategoryOptionComboStore)1 CategoryOptionComboStoreImpl (org.hisp.dhis.android.core.category.CategoryOptionComboStoreImpl)1 ResponseValidator (org.hisp.dhis.android.core.category.ResponseValidator)1 ResourceHandler (org.hisp.dhis.android.core.resource.ResourceHandler)1