15 changed files with 509 additions and 0 deletions
@ -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,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,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,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 jakarta.validation.constraints.Max; |
||||||
|
import jakarta.validation.constraints.Min; |
||||||
|
import jakarta.validation.constraints.NotNull; |
||||||
|
|
||||||
|
public class SpeakerPlayVolumeSetRequest { |
||||||
|
|
||||||
|
@NotNull |
||||||
|
Integer psdkIndex; |
||||||
|
|
||||||
|
@NotNull |
||||||
|
@Min(0) |
||||||
|
@Max(100) |
||||||
|
Integer 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(); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue