| | |
| | | package com.ard.sample.manage.model.receiver; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import com.fasterxml.jackson.databind.PropertyNamingStrategy; |
| | | import com.fasterxml.jackson.databind.annotation.JsonNaming; |
| | | import lombok.Data; |
| | |
| | | @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) |
| | | public class BatteryStateReceiver { |
| | | |
| | | //zwy 2025-10-14 修改增加注解对应json字段 |
| | | |
| | | /** |
| | | * 固件版本 text |
| | | * */ |
| | | @JsonProperty("firmware_version") |
| | | private String firmwareVersion; |
| | | |
| | | /** |
| | | * 电池序号 int {"min":"0"} |
| | | * */ |
| | | @JsonProperty("index") |
| | | private Integer index; |
| | | |
| | | /** |
| | | * 电池循环次数 int |
| | | * */ |
| | | @JsonProperty("loop_times") |
| | | private Integer loopTimes; |
| | | |
| | | /** |
| | | * 电池剩余电量 int {"max":100,"min":0} |
| | | * */ |
| | | @JsonProperty("capacity_percent") |
| | | private Integer capacityPercent; |
| | | |
| | | /** |
| | | * 电池序列号(SN) text |
| | | * */ |
| | | @JsonProperty("sn") |
| | | private String sn; |
| | | |
| | | /** |
| | | * 电池子类型 enum_int {} |
| | | * */ |
| | | @JsonProperty("sub_type") |
| | | private Integer subType; |
| | | |
| | | /** |
| | | * 温度 float {"unit_name":"摄氏度 / °C"} |
| | | * */ |
| | | @JsonProperty("temperature") |
| | | private Float temperature; |
| | | |
| | | /** |
| | | * 电池类型 enum_int {} |
| | | * */ |
| | | @JsonProperty("type") |
| | | private Integer type; |
| | | |
| | | /** |
| | | * 电压 int {"unit_name":"毫伏 / mV"} |
| | | * */ |
| | | @JsonProperty("voltage") |
| | | private Integer voltage; |
| | | |
| | | } |