package it.integry.integrywmsnative.gest.prod_rientro_merce.order_detail;

import dagger.Module;
import dagger.Provides;
import it.integry.integrywmsnative.core.rest.consumers.ColliMagazzinoRESTConsumer;
import it.integry.integrywmsnative.core.rest.consumers.PrinterRESTConsumer;
import it.integry.integrywmsnative.core.rest.consumers.SystemRESTConsumer;
import it.integry.integrywmsnative.gest.prod_rientro_merce.order_detail.rest.ProdRientroMerceOrderDetailRESTConsumer;

@Module(subcomponents = ProdRientroMerceOrderDetailComponent.class)
public class ProdRientroMerceOrderDetailModule {

    @Provides
    ProdRientroMerceOrderDetailRESTConsumer provideProdRientroMerceOrderDetailRESTConsumer(SystemRESTConsumer systemRESTConsumer) {
        return new ProdRientroMerceOrderDetailRESTConsumer(systemRESTConsumer);
    }

    @Provides
    ProdRientroMerceOrderDetailViewModel provideProdRientroMerceOrderDetailViewModel(
            ProdRientroMerceOrderDetailRESTConsumer prodRientroMerceOrderDetailRESTConsumer,
            ColliMagazzinoRESTConsumer colliMagazzinoRESTConsumer,
            PrinterRESTConsumer printerRESTConsumer) {
        return new ProdRientroMerceOrderDetailViewModel(prodRientroMerceOrderDetailRESTConsumer, colliMagazzinoRESTConsumer, printerRESTConsumer);
    }

}
