1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| package com.battery.device.model;
|
| import java.math.BigDecimal;
| import java.time.Instant;
| import java.util.Map;
|
| public record RealtimeSnapshot(
| ChannelIdentity channel,
| DeviceWorkStatus workStatus,
| Integer cycleNo,
| Integer stepNo,
| String stepType,
| String barcode,
| BigDecimal currentA,
| BigDecimal voltageV,
| BigDecimal capacityAh,
| BigDecimal energyWh,
| Long totalTimeSeconds,
| Long relativeTimeSeconds,
| String logCode,
| Instant receivedAt,
| Map<String, Measurement> measurements)
| {
| public RealtimeSnapshot
| {
| measurements = measurements == null ? Map.of() : Map.copyOf(measurements);
| }
| }
|
|