Browse Source

fix: * bug: Cannot deserialize value of type `com.dji.sdk.cloudapi.wayline.FlighttaskBreakReasonEnum` from number 1281: index value outside legal index range [0..-1]

pull/46/head
Vincent 1 year ago
parent
commit
9efb6d8a3a
  1. 15
      src/main/java/com/dji/sdk/cloudapi/wayline/FlighttaskBreakPoint.java

15
src/main/java/com/dji/sdk/cloudapi/wayline/FlighttaskBreakPoint.java

@ -24,10 +24,7 @@ public class FlighttaskBreakPoint {
@NotNull @NotNull
private BreakpointStateEnum state; private BreakpointStateEnum state;
/**
* Current wayline segment process
* bug: Cannot deserialize value of type `com.dji.sdk.cloudapi.wayline.FlighttaskBreakReasonEnum` from number 1281: index value outside legal index range [0..-1] mark by witcom 2023.11.09
*/
// @NotNull // @NotNull
// @Min(0) // @Min(0)
// @Max(1) // @Max(1)
@ -38,10 +35,14 @@ public class FlighttaskBreakPoint {
*/ */
private Integer waylineID; private Integer waylineID;
/**
* Current wayline segment process
* bug: Cannot deserialize value of type `com.dji.sdk.cloudapi.wayline.FlighttaskBreakReasonEnum` from number 1281: index value outside legal index range [0..-1] mark by witcom 2023.11.09
*/
/** /**
* Break reason * Break reason
*/ */
private FlighttaskBreakReasonEnum breakReason; private Integer breakReason;
/** /**
* Breakpoint latitude * Breakpoint latitude
@ -117,11 +118,11 @@ public class FlighttaskBreakPoint {
return this; return this;
} }
public FlighttaskBreakReasonEnum getBreakReason() { public Integer getBreakReason() {
return breakReason; return breakReason;
} }
public FlighttaskBreakPoint setBreakReason(FlighttaskBreakReasonEnum breakReason) { public FlighttaskBreakPoint setBreakReason(Integer breakReason) {
this.breakReason = breakReason; this.breakReason = breakReason;
return this; return this;
} }

Loading…
Cancel
Save