package de.votian.services.dto;

import java.util.ArrayList;
import java.util.List;

public class PublicHolidayYearDto {

    private Long headquartersId;
    private int year;
    private boolean editable;
    private List<Integer> availableYears = new ArrayList<>();
    private List<Integer> copySourceYears = new ArrayList<>();
    private List<PublicHolidayDayDto> days = new ArrayList<>();

    public Long getHeadquartersId() {
        return headquartersId;
    }

    public void setHeadquartersId(Long headquartersId) {
        this.headquartersId = headquartersId;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public boolean isEditable() {
        return editable;
    }

    public void setEditable(boolean editable) {
        this.editable = editable;
    }

    public List<Integer> getAvailableYears() {
        return availableYears;
    }

    public void setAvailableYears(List<Integer> availableYears) {
        this.availableYears = availableYears != null ? availableYears : new ArrayList<>();
    }

    public List<Integer> getCopySourceYears() {
        return copySourceYears;
    }

    public void setCopySourceYears(List<Integer> copySourceYears) {
        this.copySourceYears = copySourceYears != null ? copySourceYears : new ArrayList<>();
    }

    public List<PublicHolidayDayDto> getDays() {
        return days;
    }

    public void setDays(List<PublicHolidayDayDto> days) {
        this.days = days != null ? days : new ArrayList<>();
    }
}
