package ru.nbch.credit_tracker.entities.user_response.success;

import jakarta.xml.bind.annotation.*;
import lombok.Getter;
import lombok.Setter;

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

@Getter
@Setter
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MonitoringPackageDeleteResponse", propOrder = {
        "packageName",
        "reports"
})
@XmlRootElement(name = "MonitoringReportListResponse")
public class MonitoringReportListResponse {

    @XmlElement(name = "PackageName", required = true)
    protected String packageName;

    @XmlElement(name = "Reports", required = true)
    protected Reports reports;



    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
            "reports"
    })
    public static class Reports {

        @XmlElement(name = "Report", required = true)
        protected List<String> reports;

        public List<String> getReports() {
            if (reports == null) {
                reports = new ArrayList<>();
            }
            return this.reports;
        }
    }

}
