package at.procon.eventhub.processing.eventprocessing.validation;

import java.util.List;

public record RuntimeTachographDriverParityResultDto(
        String driverKey,
        String status,
        String referenceMode,
        int referenceSessionCount,
        boolean runtimePartitionPresent,
        List<RuntimeTachographParityCategoryComparisonDto> comparisons,
        List<String> notes,
        List<String> warnings
) {
    public RuntimeTachographDriverParityResultDto {
        comparisons = comparisons == null ? List.of() : List.copyOf(comparisons);
        notes = notes == null ? List.of() : List.copyOf(notes);
        warnings = warnings == null ? List.of() : List.copyOf(warnings);
    }
}
