public class SyncRobotCommand extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| SyncRobotCommand() | 
| SyncRobotCommand(SyncRobotCommand source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCommand()Get 可同时传入多个指令,顺序执行。取值有:
Play:播放
Pause:暂停
SwitchPrevious:上一首
SwitchNext:下一首
SetPlayMode:设置播放模式
Seek:调整播放进度
SetPlaylist:歌单变更
SetAudioParam:音频参数变更
SendMessage:发送自定义消息
SetDestroyMode:设置销毁模式 | 
| PlayCommandInput | getPlayCommandInput()Get 播放参数。 | 
| SeekCommandInput | getSeekCommandInput()Get 播放进度,当Command取Seek时,必填。 | 
| SendMessageCommandInput | getSendMessageCommandInput()Get 自定义消息,当Command取SendMessage时,必填。 | 
| SetAudioParamCommandInput | getSetAudioParamCommandInput()Get 音频参数,当Command取SetAudioParam时,必填。 | 
| SetDestroyModeCommandInput | getSetDestroyModeCommandInput()Get 销毁模式,当Command取SetDestroyMode时,必填。 | 
| SetPlaylistCommandInput | getSetPlaylistCommandInput()Get 播放列表变更信息,当Command取SetPlaylist时,必填。 | 
| SetPlayModeCommandInput | getSetPlayModeCommandInput()Get 播放模式,当Command取SetPlayMode时,必填。 | 
| void | setCommand(String Command)Set 可同时传入多个指令,顺序执行。取值有:
Play:播放
Pause:暂停
SwitchPrevious:上一首
SwitchNext:下一首
SetPlayMode:设置播放模式
Seek:调整播放进度
SetPlaylist:歌单变更
SetAudioParam:音频参数变更
SendMessage:发送自定义消息
SetDestroyMode:设置销毁模式 | 
| void | setPlayCommandInput(PlayCommandInput PlayCommandInput)Set 播放参数。 | 
| void | setSeekCommandInput(SeekCommandInput SeekCommandInput)Set 播放进度,当Command取Seek时,必填。 | 
| void | setSendMessageCommandInput(SendMessageCommandInput SendMessageCommandInput)Set 自定义消息,当Command取SendMessage时,必填。 | 
| void | setSetAudioParamCommandInput(SetAudioParamCommandInput SetAudioParamCommandInput)Set 音频参数,当Command取SetAudioParam时,必填。 | 
| void | setSetDestroyModeCommandInput(SetDestroyModeCommandInput SetDestroyModeCommandInput)Set 销毁模式,当Command取SetDestroyMode时,必填。 | 
| void | setSetPlaylistCommandInput(SetPlaylistCommandInput SetPlaylistCommandInput)Set 播放列表变更信息,当Command取SetPlaylist时,必填。 | 
| void | setSetPlayModeCommandInput(SetPlayModeCommandInput SetPlayModeCommandInput)Set 播放模式,当Command取SetPlayMode时,必填。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic SyncRobotCommand()
public SyncRobotCommand(SyncRobotCommand source)
public String getCommand()
public void setCommand(String Command)
Command - 可同时传入多个指令,顺序执行。取值有:
public PlayCommandInput getPlayCommandInput()
public void setPlayCommandInput(PlayCommandInput PlayCommandInput)
PlayCommandInput - 播放参数。public SetPlaylistCommandInput getSetPlaylistCommandInput()
public void setSetPlaylistCommandInput(SetPlaylistCommandInput SetPlaylistCommandInput)
SetPlaylistCommandInput - 播放列表变更信息,当Command取SetPlaylist时,必填。public SeekCommandInput getSeekCommandInput()
public void setSeekCommandInput(SeekCommandInput SeekCommandInput)
SeekCommandInput - 播放进度,当Command取Seek时,必填。public SetAudioParamCommandInput getSetAudioParamCommandInput()
public void setSetAudioParamCommandInput(SetAudioParamCommandInput SetAudioParamCommandInput)
SetAudioParamCommandInput - 音频参数,当Command取SetAudioParam时,必填。public SendMessageCommandInput getSendMessageCommandInput()
public void setSendMessageCommandInput(SendMessageCommandInput SendMessageCommandInput)
SendMessageCommandInput - 自定义消息,当Command取SendMessage时,必填。public SetPlayModeCommandInput getSetPlayModeCommandInput()
public void setSetPlayModeCommandInput(SetPlayModeCommandInput SetPlayModeCommandInput)
SetPlayModeCommandInput - 播放模式,当Command取SetPlayMode时,必填。public SetDestroyModeCommandInput getSetDestroyModeCommandInput()
public void setSetDestroyModeCommandInput(SetDestroyModeCommandInput SetDestroyModeCommandInput)
SetDestroyModeCommandInput - 销毁模式,当Command取SetDestroyMode时,必填。Copyright © 2025. All rights reserved.