Class: TencentCloud::Ame::V20190916::SyncKTVRobotCommandRequest

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

Overview

SyncKTVRobotCommand请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SyncKTVRobotCommandRequest.



2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
# File 'lib/v20190916/models.rb', line 2920

def initialize(robotid=nil, command=nil, playcommandinput=nil, setplaylistcommandinput=nil, seekcommandinput=nil, setaudioparamcommandinput=nil, sendmessagecommandinput=nil, setplaymodecommandinput=nil, setdestroymodecommandinput=nil, setvolumecommandinput=nil, setrealvolumecommandinput=nil)
  @RobotId = robotid
  @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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

def PlayCommandInput
  @PlayCommandInput
end

#RobotIdObject

<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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

def RobotId
  @RobotId
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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

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:

  • RobotId:

    机器人Id。

  • 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时,必填。



2918
2919
2920
# File 'lib/v20190916/models.rb', line 2918

def SetVolumeCommandInput
  @SetVolumeCommandInput
end

Instance Method Details

#deserialize(params) ⇒ Object



2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
# File 'lib/v20190916/models.rb', line 2934

def deserialize(params)
  @RobotId = params['RobotId']
  @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