package at.procon.eventhub.tachographfilesession.model;

import java.time.Instant;
import java.util.List;
import java.util.UUID;

public record TachographCompositeSession(
        UUID compositeSessionId,
        String tenantKey,
        String label,
        List<UUID> memberSessionIds,
        Instant createdAt
) {
    public TachographCompositeSession {
        memberSessionIds = memberSessionIds == null ? List.of() : List.copyOf(memberSessionIds);
    }
}
