274 changed files with 2263 additions and 506 deletions
@ -0,0 +1,99 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年04月19日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
import com.dji.sdk.cloudapi.device.PayloadIndex; |
||||||
|
import com.dji.sdk.common.BaseModel; |
||||||
|
import jakarta.validation.constraints.Max; |
||||||
|
import jakarta.validation.constraints.Min; |
||||||
|
import jakarta.validation.constraints.NotNull; |
||||||
|
|
||||||
|
public class CameraFrameZoomRequest extends BaseModel { |
||||||
|
|
||||||
|
@NotNull |
||||||
|
private PayloadIndex payloadIndex; |
||||||
|
|
||||||
|
@NotNull |
||||||
|
private CameraTypeEnum cameraType; |
||||||
|
|
||||||
|
@NotNull |
||||||
|
private Boolean locked; |
||||||
|
|
||||||
|
@Min(0) |
||||||
|
@Max(1) |
||||||
|
private Float x; |
||||||
|
|
||||||
|
@Min(0) |
||||||
|
@Max(1) |
||||||
|
private Float y; |
||||||
|
|
||||||
|
@Min(0) |
||||||
|
@Max(1) |
||||||
|
private Float width; |
||||||
|
|
||||||
|
@Min(0) |
||||||
|
@Max(1) |
||||||
|
private Float height; |
||||||
|
|
||||||
|
|
||||||
|
public PayloadIndex getPayloadIndex() { |
||||||
|
return payloadIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPayloadIndex(PayloadIndex payloadIndex) { |
||||||
|
this.payloadIndex = payloadIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public CameraTypeEnum getCameraType() { |
||||||
|
return cameraType; |
||||||
|
} |
||||||
|
|
||||||
|
public void setCameraType(CameraTypeEnum cameraType) { |
||||||
|
this.cameraType = cameraType; |
||||||
|
} |
||||||
|
|
||||||
|
public Boolean getLocked() { |
||||||
|
return locked; |
||||||
|
} |
||||||
|
|
||||||
|
public void setLocked(Boolean locked) { |
||||||
|
this.locked = locked; |
||||||
|
} |
||||||
|
|
||||||
|
public Float getX() { |
||||||
|
return x; |
||||||
|
} |
||||||
|
|
||||||
|
public void setX(Float x) { |
||||||
|
this.x = x; |
||||||
|
} |
||||||
|
|
||||||
|
public Float getY() { |
||||||
|
return y; |
||||||
|
} |
||||||
|
|
||||||
|
public void setY(Float y) { |
||||||
|
this.y = y; |
||||||
|
} |
||||||
|
|
||||||
|
public Float getWidth() { |
||||||
|
return width; |
||||||
|
} |
||||||
|
|
||||||
|
public void setWidth(Float width) { |
||||||
|
this.width = width; |
||||||
|
} |
||||||
|
|
||||||
|
public Float getHeight() { |
||||||
|
return height; |
||||||
|
} |
||||||
|
|
||||||
|
public void setHeight(Float height) { |
||||||
|
this.height = height; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,51 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
public class PSDKUiResourceUploadResult { |
||||||
|
|
||||||
|
String objectKey; |
||||||
|
|
||||||
|
Integer psdk_index; |
||||||
|
|
||||||
|
Integer result; |
||||||
|
Integer size; |
||||||
|
|
||||||
|
|
||||||
|
public String getObjectKey() { |
||||||
|
return objectKey; |
||||||
|
} |
||||||
|
|
||||||
|
public void setObjectKey(String objectKey) { |
||||||
|
this.objectKey = objectKey; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getPsdk_index() { |
||||||
|
return psdk_index; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPsdk_index(Integer psdk_index) { |
||||||
|
this.psdk_index = psdk_index; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getResult() { |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
public void setResult(Integer result) { |
||||||
|
this.result = result; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getSize() { |
||||||
|
return size; |
||||||
|
} |
||||||
|
|
||||||
|
public void setSize(Integer size) { |
||||||
|
this.size = size; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,29 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
public class PsdkFloatingWindowText { |
||||||
|
String value; |
||||||
|
Integer psdkIndex; |
||||||
|
|
||||||
|
public String getValue() { |
||||||
|
return value; |
||||||
|
} |
||||||
|
|
||||||
|
public void setValue(String value) { |
||||||
|
this.value = value; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getPsdkIndex() { |
||||||
|
return psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPsdkIndex(Integer psdkIndex) { |
||||||
|
this.psdkIndex = psdkIndex; |
||||||
|
} |
||||||
|
} |
@ -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; |
||||||
|
} |
@ -0,0 +1,23 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
import com.dji.sdk.common.BaseModel; |
||||||
|
|
||||||
|
public class PsdkRequest extends BaseModel { |
||||||
|
|
||||||
|
Integer psdkIndex; |
||||||
|
|
||||||
|
public Integer getPsdkIndex() { |
||||||
|
return psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPsdkIndex(Integer psdkIndex) { |
||||||
|
this.psdkIndex = psdkIndex; |
||||||
|
} |
||||||
|
} |
@ -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; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,37 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
import com.dji.sdk.common.BaseModel; |
||||||
|
import jakarta.validation.constraints.NotNull; |
||||||
|
|
||||||
|
public class SpeakerAudioPlayStartRequest extends BaseModel { |
||||||
|
|
||||||
|
@NotNull |
||||||
|
Integer psdkIndex; |
||||||
|
|
||||||
|
@NotNull |
||||||
|
SpeakerAudioPlayStartRequestFile file; |
||||||
|
|
||||||
|
|
||||||
|
public Integer getPsdkIndex() { |
||||||
|
return psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPsdkIndex(Integer psdkIndex) { |
||||||
|
this.psdkIndex = psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public SpeakerAudioPlayStartRequestFile getFile() { |
||||||
|
return file; |
||||||
|
} |
||||||
|
|
||||||
|
public void setFile(SpeakerAudioPlayStartRequestFile file) { |
||||||
|
this.file = file; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,55 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
import jakarta.validation.constraints.NotEmpty; |
||||||
|
import jakarta.validation.constraints.NotNull; |
||||||
|
|
||||||
|
public class SpeakerAudioPlayStartRequestFile { |
||||||
|
|
||||||
|
String format = "pcm"; |
||||||
|
|
||||||
|
@NotEmpty |
||||||
|
String md5; |
||||||
|
@NotEmpty |
||||||
|
String name; |
||||||
|
@NotEmpty |
||||||
|
String url; |
||||||
|
|
||||||
|
public String getFormat() { |
||||||
|
return format; |
||||||
|
} |
||||||
|
|
||||||
|
public void setFormat(String format) { |
||||||
|
this.format = format; |
||||||
|
} |
||||||
|
|
||||||
|
public String getMd5() { |
||||||
|
return md5; |
||||||
|
} |
||||||
|
|
||||||
|
public void setMd5(String md5) { |
||||||
|
this.md5 = md5; |
||||||
|
} |
||||||
|
|
||||||
|
public String getName() { |
||||||
|
return name; |
||||||
|
} |
||||||
|
|
||||||
|
public void setName(String name) { |
||||||
|
this.name = name; |
||||||
|
} |
||||||
|
|
||||||
|
public String getUrl() { |
||||||
|
return url; |
||||||
|
} |
||||||
|
|
||||||
|
public void setUrl(String url) { |
||||||
|
this.url = url; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,37 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
import com.dji.sdk.common.BaseModel; |
||||||
|
import jakarta.validation.constraints.NotNull; |
||||||
|
|
||||||
|
public class SpeakerPlayModeSetRequest extends BaseModel { |
||||||
|
|
||||||
|
//"0":"单次播放","1":"循环播放(单曲)"
|
||||||
|
@NotNull |
||||||
|
Integer playMode; |
||||||
|
|
||||||
|
@NotNull |
||||||
|
Integer psdkIndex; |
||||||
|
|
||||||
|
public Integer getPlayMode() { |
||||||
|
return playMode; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPlayMode(Integer playMode) { |
||||||
|
this.playMode = playMode; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getPsdkIndex() { |
||||||
|
return psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPsdkIndex(Integer psdkIndex) { |
||||||
|
this.psdkIndex = psdkIndex; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,29 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
public class SpeakerPlayProgress { |
||||||
|
Integer percent; |
||||||
|
String stepKey; |
||||||
|
|
||||||
|
public Integer getPercent() { |
||||||
|
return percent; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPercent(Integer percent) { |
||||||
|
this.percent = percent; |
||||||
|
} |
||||||
|
|
||||||
|
public String getStepKey() { |
||||||
|
return stepKey; |
||||||
|
} |
||||||
|
|
||||||
|
public void setStepKey(String stepKey) { |
||||||
|
this.stepKey = stepKey; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,48 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
public class SpeakerPlayStartProgress { |
||||||
|
|
||||||
|
String md5; |
||||||
|
Integer psdkIndex; |
||||||
|
String status; |
||||||
|
SpeakerPlayProgress progress; |
||||||
|
|
||||||
|
public String getMd5() { |
||||||
|
return md5; |
||||||
|
} |
||||||
|
|
||||||
|
public void setMd5(String md5) { |
||||||
|
this.md5 = md5; |
||||||
|
} |
||||||
|
|
||||||
|
public Integer getPsdkIndex() { |
||||||
|
return psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPsdkIndex(Integer psdkIndex) { |
||||||
|
this.psdkIndex = psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public String getStatus() { |
||||||
|
return status; |
||||||
|
} |
||||||
|
|
||||||
|
public void setStatus(String status) { |
||||||
|
this.status = status; |
||||||
|
} |
||||||
|
|
||||||
|
public SpeakerPlayProgress getProgress() { |
||||||
|
return progress; |
||||||
|
} |
||||||
|
|
||||||
|
public void setProgress(SpeakerPlayProgress progress) { |
||||||
|
this.progress = progress; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,40 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
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 extends BaseModel { |
||||||
|
|
||||||
|
@NotNull |
||||||
|
Integer psdkIndex; |
||||||
|
|
||||||
|
@NotNull |
||||||
|
@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; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,36 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
import com.dji.sdk.common.BaseModel; |
||||||
|
import jakarta.validation.constraints.NotNull; |
||||||
|
|
||||||
|
public class SpeakerTTSPlayStartRequest extends BaseModel { |
||||||
|
|
||||||
|
@NotNull |
||||||
|
Integer psdkIndex; |
||||||
|
|
||||||
|
@NotNull |
||||||
|
SpeakerTTSPlayStartRequestTTS tts; |
||||||
|
|
||||||
|
public Integer getPsdkIndex() { |
||||||
|
return psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPsdkIndex(Integer psdkIndex) { |
||||||
|
this.psdkIndex = psdkIndex; |
||||||
|
} |
||||||
|
|
||||||
|
public SpeakerTTSPlayStartRequestTTS getTts() { |
||||||
|
return tts; |
||||||
|
} |
||||||
|
|
||||||
|
public void setTts(SpeakerTTSPlayStartRequestTTS tts) { |
||||||
|
this.tts = tts; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,43 @@ |
|||||||
|
/************************************************* |
||||||
|
* @copyright 2017 Flision Corporation Inc. |
||||||
|
* @author: Vincent Chan @ Canton |
||||||
|
* @date: 2024年06月03日 |
||||||
|
* @version: 1.0.0 |
||||||
|
* @description: |
||||||
|
**************************************************/ |
||||||
|
package com.dji.sdk.cloudapi.control; |
||||||
|
|
||||||
|
import com.google.common.base.Charsets; |
||||||
|
import com.google.common.hash.Hashing; |
||||||
|
|
||||||
|
import java.beans.Encoder; |
||||||
|
|
||||||
|
public class SpeakerTTSPlayStartRequestTTS { |
||||||
|
String md5; |
||||||
|
|
||||||
|
String name; |
||||||
|
|
||||||
|
String text; |
||||||
|
|
||||||
|
public String getMd5() { |
||||||
|
return md5; |
||||||
|
} |
||||||
|
|
||||||
|
public String getName() { |
||||||
|
return name; |
||||||
|
} |
||||||
|
|
||||||
|
public void setName(String name) { |
||||||
|
this.name = name; |
||||||
|
} |
||||||
|
|
||||||
|
public String getText() { |
||||||
|
return text; |
||||||
|
} |
||||||
|
|
||||||
|
public void setText(String text) { |
||||||
|
this.text = text; |
||||||
|
this.md5 = Hashing.md5().newHasher().putString(text, Charsets.UTF_8) |
||||||
|
.hash().toString(); |
||||||
|
} |
||||||
|
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue