Class: TencentCloud::Yinsuda::V20220527::SyncRobotCommand

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

Overview

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

Instance Attribute Summary collapse

  • #PlayCommandInput ⇒ Object
  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • .
  • #SeekCommandInput ⇒ Object
  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • .
  • #SendMessageCommandInput ⇒ Object
  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • .
  • #SetAudioParamCommandInput ⇒ Object
  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • .
  • #SetDestroyModeCommandInput ⇒ Object
  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • .
  • #SetPlaylistCommandInput ⇒ Object
  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • .
  • #SetPlayModeCommandInput ⇒ Object
  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • .

    Instance Method Summary collapse

    Constructor Details

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

    Returns a new instance of SyncRobotCommand.

    
    
    2056
    2057
    2058
    2059
    2060
    2061
    2062
    2063
    2064
    2065
    # File 'lib/v20220527/models.rb', line 2056
    
    def initialize(command=nil, playcommandinput=nil, setplaylistcommandinput=nil, seekcommandinput=nil, setaudioparamcommandinput=nil, sendmessagecommandinput=nil, setplaymodecommandinput=nil, setdestroymodecommandinput=nil)
      @Command = command
      @PlayCommandInput = playcommandinput
      @SetPlaylistCommandInput = setplaylistcommandinput
      @SeekCommandInput = seekcommandinput
      @SetAudioParamCommandInput = setaudioparamcommandinput
      @SendMessageCommandInput = sendmessagecommandinput
      @SetPlayModeCommandInput = setplaymodecommandinput
      @SetDestroyModeCommandInput = setdestroymodecommandinput
    end
    

    Instance Attribute Details

    #CommandObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def Command
      @Command
    end
    

    #PlayCommandInputObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def PlayCommandInput
      @PlayCommandInput
    end
    

    #SeekCommandInputObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def SeekCommandInput
      @SeekCommandInput
    end
    

    #SendMessageCommandInputObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def SendMessageCommandInput
      @SendMessageCommandInput
    end
    

    #SetAudioParamCommandInputObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def SetAudioParamCommandInput
      @SetAudioParamCommandInput
    end
    

    #SetDestroyModeCommandInputObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def SetDestroyModeCommandInput
      @SetDestroyModeCommandInput
    end
    

    #SetPlaylistCommandInputObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def SetPlaylistCommandInput
      @SetPlaylistCommandInput
    end
    

    #SetPlayModeCommandInputObject

  • Play:播放
  • Pause:暂停
  • SwitchPrevious:上一首
  • SwitchNext:下一首
  • SetPlayMode:设置播放模式
  • Seek:调整播放进度
  • SetPlaylist:歌单变更
  • SetAudioParam:音频参数变更
  • SendMessage:发送自定义消息
  • SetDestroyMode:设置销毁模式
  • Parameters:

    • Command:

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

    • PlayCommandInput:

      播放参数。

    • SetPlaylistCommandInput:

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

    • SeekCommandInput:

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

    • SetAudioParamCommandInput:

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

    • SendMessageCommandInput:

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

    • SetPlayModeCommandInput:

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

    • SetDestroyModeCommandInput:

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

    
    
    2054
    2055
    2056
    # File 'lib/v20220527/models.rb', line 2054
    
    def SetPlayModeCommandInput
      @SetPlayModeCommandInput
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    2067
    2068
    2069
    2070
    2071
    2072
    2073
    2074
    2075
    2076
    2077
    2078
    2079
    2080
    2081
    2082
    2083
    2084
    2085
    2086
    2087
    2088
    2089
    2090
    2091
    2092
    2093
    2094
    2095
    2096
    2097
    # File 'lib/v20220527/models.rb', line 2067
    
    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
    end