package com.djhk.uav.uav.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author jiachengshuai
 * @version 1.3
 * @date 2023/1/11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SyunDrcModeParam implements Serializable {

    private static final long serialVersionUID = 1L;

    private String clientId;

    private String workspaceId;

    @NotBlank
    private String dockSn;

    @Range(min = 1800, max = 86400)
    private long expireSec = 3600;

    private Integer expireSe = 3600;

    @Valid
    private SyunDeviceDrcInfoParam deviceInfo = new SyunDeviceDrcInfoParam();
}
