All Downloads are FREE. Search and download functionalities are using the official Maven repository.

one.microproject.rpi.powercontroller.dto.SystemState Maven / Gradle / Ivy

package one.microproject.rpi.powercontroller.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;
import java.util.Map;

public class SystemState {

    private final Date timeStamp;
    private final Map ports;
    private final Map portTypes;

    @JsonCreator
    public SystemState(@JsonProperty("timeStamp") Date timeStamp,
                       @JsonProperty("ports") Map ports,
                       @JsonProperty("portTypes") Map portTypes) {
        this.timeStamp = timeStamp;
        this.ports = ports;
        this.portTypes = portTypes;
    }

    public Map getPorts() {
        return ports;
    }

    public Map getPortTypes() {
        return portTypes;
    }

    public Date getTimeStamp() {
        return timeStamp;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy