Class: TencentCloud::Ame::V20190916::SyncRobotCommand

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190916/models.rb

Overview

KTV 机器人初始化参数,在创建后自动完成相关初始化工作。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command = nil, playcommandinput = nil, setplaylistcommandinput = nil, seekcommandinput = nil, setaudioparamcommandinput = nil, sendmessagecommandinput = nil, setplaymodecommandinput = nil, setdestroymodecommandinput = nil, setvolumecommandinput = nil, setrealvolumecommandinput = nil) ⇒ SyncRobotCommand

Returns a new instance of SyncRobotCommand.



3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
# File 'lib/v20190916/models.rb', line 3030

def initialize(command=nil, playcommandinput=nil, setplaylistcommandinput=nil, seekcommandinput=nil, setaudioparamcommandinput=nil, sendmessagecommandinput=nil, setplaymodecommandinput=nil, setdestroymodecommandinput=nil, setvolumecommandinput=nil, setrealvolumecommandinput=nil)
  @Command = command
  @PlayCommandInput = playcommandinput
  @SetPlaylistCommandInput = setplaylistcommandinput
  @SeekCommandInput = seekcommandinput
  @SetAudioParamCommandInput = setaudioparamcommandinput
  @SendMessageCommandInput = sendmessagecommandinput
  @SetPlayModeCommandInput = setplaymodecommandinput
  @SetDestroyModeCommandInput = setdestroymodecommandinput
  @SetVolumeCommandInput = setvolumecommandinput
  @SetRealVolumeCommandInput = setrealvolumecommandinput
end

Instance Attribute Details

#CommandObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def Command
  @Command
end

#PlayCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def PlayCommandInput
  @PlayCommandInput
end

#SeekCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SeekCommandInput
  @SeekCommandInput
end

#SendMessageCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SendMessageCommandInput
  @SendMessageCommandInput
end

#SetAudioParamCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SetAudioParamCommandInput
  @SetAudioParamCommandInput
end

#SetDestroyModeCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SetDestroyModeCommandInput
  @SetDestroyModeCommandInput
end

#SetPlaylistCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SetPlaylistCommandInput
  @SetPlaylistCommandInput
end

#SetPlayModeCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SetPlayModeCommandInput
  @SetPlayModeCommandInput
end

#SetRealVolumeCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SetRealVolumeCommandInput
  @SetRealVolumeCommandInput
end

#SetVolumeCommandInputObject

<li>Play:播放</li> <li>Pause:暂停</li> <li>SwitchPrevious:上一首</li> <li>SwitchNext:下一首</li> <li>SetPlayMode:设置播放模式</li> <li>Seek:调整播放进度</li> <li>SetPlaylist:歌单变更</li> <li>SetAudioParam:音频参数变更</li> <li>SendMessage:发送自定义消息</li> <li>SetDestroyMode:设置销毁模式</li> <li><del>SetVolume:设置音量</del>(已废弃,请采用 SetRealVolume)</li> <li>SetRealVolume:设置真实音量</li> (已废弃,请采用 SetRealVolumeCommandInput)

Parameters:

  • Command:

    可同时传入多个指令,顺序执行。取值有:

  • PlayCommandInput:

    播放参数。

  • SetPlaylistCommandInput:

    播放列表变更信息,当Command取SetPlaylist时,必填。

  • SeekCommandInput:

    播放进度,当Command取Seek时,必填。

  • SetAudioParamCommandInput:

    音频参数,当Command取SetAudioParam时,必填。

  • SendMessageCommandInput:

    自定义消息,当Command取SendMessage时,必填。

  • SetPlayModeCommandInput:

    播放模式,当Command取SetPlayMode时,必填。

  • SetDestroyModeCommandInput:

    销毁模式,当Command取SetDestroyMode时,必填。

  • SetVolumeCommandInput: (del)

    音量,当Command取SetVolume时,必填。</del>

  • SetRealVolumeCommandInput:

    真实音量,当Command取SetRealVolume时,必填。



3028
3029
3030
# File 'lib/v20190916/models.rb', line 3028

def SetVolumeCommandInput
  @SetVolumeCommandInput
end

Instance Method Details

#deserialize(params) ⇒ Object



3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
# File 'lib/v20190916/models.rb', line 3043

def deserialize(params)
  @Command = params['Command']
  unless params['PlayCommandInput'].nil?
    @PlayCommandInput = PlayCommandInput.new
    @PlayCommandInput.deserialize(params['PlayCommandInput'])
  end
  unless params['SetPlaylistCommandInput'].nil?
    @SetPlaylistCommandInput = SetPlaylistCommandInput.new
    @SetPlaylistCommandInput.deserialize(params['SetPlaylistCommandInput'])
  end
  unless params['SeekCommandInput'].nil?
    @SeekCommandInput = SeekCommandInput.new
    @SeekCommandInput.deserialize(params['SeekCommandInput'])
  end
  unless params['SetAudioParamCommandInput'].nil?
    @SetAudioParamCommandInput = SetAudioParamCommandInput.new
    @SetAudioParamCommandInput.deserialize(params['SetAudioParamCommandInput'])
  end
  unless params['SendMessageCommandInput'].nil?
    @SendMessageCommandInput = SendMessageCommandInput.new
    @SendMessageCommandInput.deserialize(params['SendMessageCommandInput'])
  end
  unless params['SetPlayModeCommandInput'].nil?
    @SetPlayModeCommandInput = SetPlayModeCommandInput.new
    @SetPlayModeCommandInput.deserialize(params['SetPlayModeCommandInput'])
  end
  unless params['SetDestroyModeCommandInput'].nil?
    @SetDestroyModeCommandInput = SetDestroyModeCommandInput.new
    @SetDestroyModeCommandInput.deserialize(params['SetDestroyModeCommandInput'])
  end
  unless params['SetVolumeCommandInput'].nil?
    @SetVolumeCommandInput = SetVolumeCommandInput.new
    @SetVolumeCommandInput.deserialize(params['SetVolumeCommandInput'])
  end
  unless params['SetRealVolumeCommandInput'].nil?
    @SetRealVolumeCommandInput = SetRealVolumeCommandInput.new
    @SetRealVolumeCommandInput.deserialize(params['SetRealVolumeCommandInput'])
  end
end