package com.dacrt.SBIABackend.dto;
import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;


@JsonInclude(JsonInclude.Include.NON_NULL)
public class GlobalSectionDto {

	private String label;
    private java.math.BigDecimal value; // O el tipo de dato que uses (Double/Integer)
    private String color;
    private List<SectionValueDto> values;
    
    // Nueva propiedad añadida
    private LevelDto level;

    // --- GETTERS Y SETTERS ---
    public String getLabel() { return label; }
    public void setLabel(String label) { this.label = label; }

    public java.math.BigDecimal getValue() { return value; }
    public void setValue(java.math.BigDecimal value) { this.value = value; }

    public String getColor() { return color; }
    public void setColor(String color) { this.color = color; }

    public List<SectionValueDto> getValues() { return values; }
    public void setValues(List<SectionValueDto> values) { this.values = values; }

    public LevelDto getLevel() { return level; }
    public void setLevel(LevelDto level) { this.level = level; }

    // ========================================================
    // SUB-CLASE INTERNA PARA EL OBJETO "level"
    // ========================================================
    public static class LevelDto {
        private String color;
        private String label;

        // Constructor vacío requerido por Jackson
        public LevelDto() {}

        public LevelDto(String color, String label) {
            this.color = color;
            this.label = label;
        }

        // Getters y Setters
        public String getColor() { return color; }
        public void setColor(String color) { this.color = color; }

        public String getLabel() { return label; }
        public void setLabel(String label) { this.label = label; }
    }
    
}
