2022-11-24 11:35:49 +00:00
|
|
|
package biz.nellemann.hmci.dto.json;
|
|
|
|
|
2023-01-05 13:28:12 +00:00
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
2022-11-24 11:35:49 +00:00
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonUnwrapped;
|
|
|
|
import java.util.List;
|
|
|
|
|
2023-01-05 13:28:12 +00:00
|
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
2022-11-24 11:35:49 +00:00
|
|
|
public final class SystemUtil {
|
|
|
|
|
|
|
|
@JsonProperty("utilInfo")
|
|
|
|
public UtilInfo utilInfo;
|
|
|
|
|
|
|
|
public UtilInfo getUtilInfo() {
|
|
|
|
return utilInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonUnwrapped
|
|
|
|
@JsonProperty("utilSamples")
|
|
|
|
public List<UtilSample> samples;
|
|
|
|
|
2022-12-05 14:18:42 +00:00
|
|
|
public UtilSample getSample(int n) {
|
|
|
|
return samples.size() > n ? samples.get(n) : new UtilSample();
|
|
|
|
}
|
|
|
|
|
2022-11-24 11:35:49 +00:00
|
|
|
public UtilSample getSample() {
|
|
|
|
return samples.size() > 0 ? samples.get(0) : new UtilSample();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|