package de.avatic.lcc.dto.calculation.edit.destination;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

import java.util.List;
import java.util.Map;

public class DestinationCreateDTO {

    @NotEmpty(message = "At least one premise must be selected")
    @NotNull(message = "At least one premise must be selected")
    @JsonProperty("destination_node_ids")
    Map<Integer, List<@Min(value = 1, message = "Missing destination ids") Integer>> destinationNodeIds;

    public Map<Integer, List<Integer>> getDestinationNodeIds() {
        return destinationNodeIds;
    }

    public void setDestinationNodeIds(Map<Integer, List<Integer>> destinationNodeIds) {
        this.destinationNodeIds = destinationNodeIds;
    }
}
