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;
|
}
|