Browse Source

fix: 修复新增的psdk接口无法调用问题

pull/75/head
Vincent 8 months ago
parent
commit
b25556a977
  1. 12
      cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/PayloadControlMethodEnum.java
  2. 19
      cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/PsdkInputBoxTextSetRequest.java
  3. 45
      cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/PsdkWidgetValueSetRequest.java
  4. 19
      cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/SpeakerPlayVolumeSetRequest.java

12
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/PayloadControlMethodEnum.java

@ -52,7 +52,17 @@ public enum PayloadControlMethodEnum { @@ -52,7 +52,17 @@ public enum PayloadControlMethodEnum {
CAMERA_POINT_FOCUS_ACTION(ControlMethodEnum.CAMERA_POINT_FOCUS_ACTION, CameraPointFocusActionRequest.class),
CAMERA_FRAME_ZOOM(ControlMethodEnum.CAMERA_FRAME_ZOOM, CameraFrameZoomRequest.class)
CAMERA_FRAME_ZOOM(ControlMethodEnum.CAMERA_FRAME_ZOOM, CameraFrameZoomRequest.class),
SPEAKER_AUDIO_PLAY_START(ControlMethodEnum.SPEAKER_AUDIO_PLAY_START,SpeakerAudioPlayStartRequest.class),
SPEAKER_TTS_PLAY_START(ControlMethodEnum.SPEAKER_TTS_PLAY_START,SpeakerTTSPlayStartRequest.class),
SPEAKER_REPLAY(ControlMethodEnum.SPEAKER_REPLAY,PsdkRequest.class),
SPEAKER_PLAY_STOP(ControlMethodEnum.SPEAKER_PLAY_STOP,PsdkRequest.class),
SPEAKER_PLAY_MODE_SET(ControlMethodEnum.SPEAKER_PLAY_MODE_SET, SpeakerPlayModeSetRequest.class),
SPEAKER_PLAY_VOLUME_SET(ControlMethodEnum.SPEAKER_PLAY_VOLUME_SET, SpeakerPlayVolumeSetRequest.class),
PSDK_WIDGET_VALUE_SET(ControlMethodEnum.PSDK_WIDGET_VALUE_SET,PsdkWidgetValueSetRequest.class),
PSDK_INPUT_BOX_TEXT_SET(ControlMethodEnum.PSDK_INPUT_BOX_TEXT_SET, PsdkInputBoxTextSetRequest.class),
;
private final ControlMethodEnum payloadMethod;

19
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/PsdkInputBoxTextSetRequest.java

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
/*************************************************
* @copyright 2017 Flision Corporation Inc.
* @author: Vincent Chan @ Canton
* @date: 2024年06月04日
* @version: 1.0.0
* @description:
**************************************************/
package com.dji.sdk.cloudapi.control;
import com.dji.sdk.common.BaseModel;
import jakarta.validation.constraints.NotNull;
public class PsdkInputBoxTextSetRequest extends BaseModel {
@NotNull
Integer psdkIndex;
String value;
}

45
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/PsdkWidgetValueSetRequest.java

@ -0,0 +1,45 @@ @@ -0,0 +1,45 @@
/*************************************************
* @copyright 2017 Flision Corporation Inc.
* @author: Vincent Chan @ Canton
* @date: 2024年06月04日
* @version: 1.0.0
* @description:
**************************************************/
package com.dji.sdk.cloudapi.control;
import com.dji.sdk.common.BaseModel;
import jakarta.validation.constraints.NotNull;
public class PsdkWidgetValueSetRequest extends BaseModel {
@NotNull
Integer index;
@NotNull
Integer psdkIndex;
Integer value;
public Integer getIndex() {
return index;
}
public void setIndex(Integer index) {
this.index = index;
}
public Integer getPsdkIndex() {
return psdkIndex;
}
public void setPsdkIndex(Integer psdkIndex) {
this.psdkIndex = psdkIndex;
}
public Integer getValue() {
return value;
}
public void setValue(Integer value) {
this.value = value;
}
}

19
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/control/SpeakerPlayVolumeSetRequest.java

@ -7,11 +7,12 @@ @@ -7,11 +7,12 @@
**************************************************/
package com.dji.sdk.cloudapi.control;
import com.dji.sdk.common.BaseModel;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
public class SpeakerPlayVolumeSetRequest {
public class SpeakerPlayVolumeSetRequest extends BaseModel {
@NotNull
Integer psdkIndex;
@ -20,4 +21,20 @@ public class SpeakerPlayVolumeSetRequest { @@ -20,4 +21,20 @@ public class SpeakerPlayVolumeSetRequest {
@Min(0)
@Max(100)
Integer playVolume;
public Integer getPsdkIndex() {
return psdkIndex;
}
public void setPsdkIndex(Integer psdkIndex) {
this.psdkIndex = psdkIndex;
}
public Integer getPlayVolume() {
return playVolume;
}
public void setPlayVolume(Integer playVolume) {
this.playVolume = playVolume;
}
}

Loading…
Cancel
Save