package com.dji.sample.wayline.model.param;

import com.dji.sdk.cloudapi.wayline.*;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author sean
 * @version 1.1
 * @date 2022/6/1
 */
@Data
public class CreateJobParam {

    @NotBlank
    private String name;

    @NotBlank
    private String fileId;

    @NotBlank
    private String dockSn;

    @NotNull
    private WaylineTypeEnum waylineType;

    @NotNull
    private TaskTypeEnum taskType;

    @Range(min = 20, max = 500)
    @NotNull
    private Integer rthAltitude;

    @NotNull
    private OutOfControlActionEnum outOfControlAction;

    @Range(min = 50, max = 90)
    private Integer minBatteryCapacity;

    private Integer minStorageCapacity;

    private List<Long> taskDays;

    private List<List<Long>> taskPeriods;

    private String orgId;

    /**
     * 断点
     */
    private FlighttaskBreakPoint breakPoint;

    /**
     * 自动断点续飞 0 不续飞 1 续飞
     */
    private Integer breakPointResumeFlight;

    /**
     * 航线精度类型 0: GPS任务 1: 高精度RTK任务
     */
    private Integer waylinePrecisionType;

    /**
     * 模拟飞行
     */
    private SimulateMission simulateMission;

}
