package com.psg.dlsysinfo.dl_sysinfo_server.dto;

import java.time.LocalDateTime;
import java.util.List;

public class SoftwareInstanceDTO {
    private Long id; // cached_installed_software.id
    private Long deviceId;
    private String hostname;
    private String version;
    private String publisher;
    private LocalDateTime lastUpdated;

    private List<DeviceVulnerabilityDTO> vulnerabilities; // ✅ correct

    // --- GETTERS and SETTERS ---

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public LocalDateTime getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(LocalDateTime lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    public List<DeviceVulnerabilityDTO> getVulnerabilities() { // ✅ correct
        return vulnerabilities;
    }

    public void setVulnerabilities(List<DeviceVulnerabilityDTO> vulnerabilities) { // ✅ correct
        this.vulnerabilities = vulnerabilities;
    }
}
