package com.iqser.red.service.persistence.management.v1.processor.utils;

import java.util.function.BiConsumer;

import com.iqser.red.service.persistence.management.v1.processor.entity.dossier.DossierStatusEntity;
import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.dossier.DossierStatusInfo;

public class DossierStatusMapper implements BiConsumer<DossierStatusEntity, DossierStatusInfo> {

    @Override
    public void accept(DossierStatusEntity dossierStatusEntity, DossierStatusInfo dossierStatusInfo) {

        dossierStatusInfo.setDossierCount((long) dossierStatusEntity.getDossiers().size());
    }

}
