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

import at.procon.eventhub.dto.EventHubEventDto;
import java.util.List;

public record RuntimeSupportEvidenceNormalizationResult(
        List<EventHubEventDto> normalizedEvents,
        int inputEventCount,
        int normalizedSupportEvidenceEventCount,
        int unchangedEventCount,
        List<String> notes
) {
    public RuntimeSupportEvidenceNormalizationResult {
        normalizedEvents = normalizedEvents == null ? List.of() : List.copyOf(normalizedEvents);
        normalizedSupportEvidenceEventCount = Math.max(0, normalizedSupportEvidenceEventCount);
        unchangedEventCount = Math.max(0, unchangedEventCount);
        notes = notes == null ? List.of() : List.copyOf(notes);
    }
}
