package at.procon.eventhub.tachographfilesession.service;

import at.procon.eventhub.processing.driverworkingtime.model.DriverWorkingTimeProcessingInput;
import at.procon.eventhub.tachographfilesession.model.ResolvedDriverTimeline;

final class TachographEsperProcessingInputAdapter {

    private TachographEsperProcessingInputAdapter() {
    }

    static DriverWorkingTimeProcessingInput toDriverWorkingTimeInput(TachographEsperProcessingInput input) {
        ResolvedDriverTimeline timeline = input.timeline();
        return TachographDriverWorkingTimeAdapter.toProcessingInput(
                input.sessionId(),
                input.driverKey(),
                timeline,
                input.requestedFrom(),
                input.requestedTo(),
                input.significantDrivingMinutes(),
                input.minimumRestPeriodMinutes(),
                input.notes()
        );
    }
}
