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 { @@ -24,10 +24,7 @@ public class FlighttaskBreakPoint {
@NotNull
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
// @Min(0)
// @Max(1)
@ -38,10 +35,14 @@ public class FlighttaskBreakPoint { @@ -38,10 +35,14 @@ public class FlighttaskBreakPoint {
*/
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
*/
private FlighttaskBreakReasonEnum breakReason;
private Integer breakReason;
/**
* Breakpoint latitude
@ -117,11 +118,11 @@ public class FlighttaskBreakPoint { @@ -117,11 +118,11 @@ public class FlighttaskBreakPoint {
return this;
}
public FlighttaskBreakReasonEnum getBreakReason() {
public Integer getBreakReason() {
return breakReason;
}
public FlighttaskBreakPoint setBreakReason(FlighttaskBreakReasonEnum breakReason) {
public FlighttaskBreakPoint setBreakReason(Integer breakReason) {
this.breakReason = breakReason;
return this;
}

Loading…
Cancel
Save