package it.integry.integrywmsnative.gest.inventario;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import it.integry.integrywmsnative.core.data_store.db.respository_new.InventarioRepository;
import it.integry.integrywmsnative.core.settings.SettingsManager;
import it.integry.integrywmsnative.core.rest.consumers.InventarioRESTConsumer;

@Module(subcomponents = ElencoInventariComponent.class)
public class ElencoInventariModule {

    @Provides
    @Singleton
    InventarioRESTConsumer providesInventarioRESTConsumer() {
        return new InventarioRESTConsumer();
    }

    @Provides
    @Singleton
    ElencoInventariViewModel providesInventarioViewModel(
            InventarioRepository inventarioRepository,
            InventarioRESTConsumer inventarioRESTConsumer,
            SettingsManager settingsManager) {
        return new ElencoInventariViewModel(inventarioRepository, inventarioRESTConsumer, settingsManager);
    }

}
