You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.dji.sdk.cloudapi.firmware;
|
|
|
|
|
|
|
|
import com.dji.sdk.common.BaseModel;
|
|
|
|
|
|
|
|
import jakarta.validation.Valid;
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author sean
|
|
|
|
* @version 1.7
|
|
|
|
* @date 2023/6/28
|
|
|
|
*/
|
|
|
|
public class OtaCreateRequest extends BaseModel {
|
|
|
|
|
|
|
|
@Size(min = 1, max = 2)
|
|
|
|
@NotNull
|
|
|
|
@Valid
|
|
|
|
private List<OtaCreateDevice> devices;
|
|
|
|
|
|
|
|
public OtaCreateRequest() {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "OtaCreateRequest{" +
|
|
|
|
"devices=" + devices +
|
|
|
|
'}';
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<OtaCreateDevice> getDevices() {
|
|
|
|
return devices;
|
|
|
|
}
|
|
|
|
|
|
|
|
public OtaCreateRequest setDevices(List<OtaCreateDevice> devices) {
|
|
|
|
this.devices = devices;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|