zhaowenyu
2025-11-03 64f8a6cba93620faa9a422bfca3967ab2c881e9c
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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;
 
import java.util.List;
 
/**
 * @author sean
 * @version 0.3
 * @date 2022/1/27
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class BatteryReceiver {
    // zwy 2025-10-14 修改增加注解对应json字段
    /**
     * 电池详细信息    array    {"size": -, "item_type": struct}
     * */
    @JsonProperty("batteries")
    private List<BatteryStateReceiver> batteries;
 
    /**
     * 电池的总剩余电量    int    {"max":100,"min":0}
     * */
    @JsonProperty("capacity_percent")
    private Integer capacityPercent;
 
    /**
     * 强制降落电量百分比    int    {"max":100,"min":0}
     * */
    @JsonProperty("landing_power")
    private Integer landingPower;
 
    /**
     * 剩余飞行时间    int    {"unit_name":"秒 / s"}
     * */
    @JsonProperty("remain_flight_time")
    private Integer remainFlightTime;
 
    /**
     * 返航所需电量百分比    int    {"max":100,"min":0}
     * */
    @JsonProperty("return_home_power")
    private Integer returnHomePower;
}