Class: TencentCloud::Yinsuda::V20220527::SyncKTVRobotCommandRequest

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

Overview

SyncKTVRobotCommand请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(appname = nil, userid = nil, robotid = nil, syncrobotcommands = nil) ⇒ SyncKTVRobotCommandRequest

Returns a new instance of SyncKTVRobotCommandRequest.



1987
1988
1989
1990
1991
1992
# File 'lib/v20220527/models.rb', line 1987

def initialize(appname=nil, userid=nil, robotid=nil, syncrobotcommands=nil)
  @AppName = appname
  @UserId = userid
  @RobotId = robotid
  @SyncRobotCommands = syncrobotcommands
end

Instance Attribute Details

#AppNameObject

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RobotId:

    机器人Id。

  • SyncRobotCommands:

    指令及指令参数数组。



1985
1986
1987
# File 'lib/v20220527/models.rb', line 1985

def AppName
  @AppName
end

#RobotIdObject

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RobotId:

    机器人Id。

  • SyncRobotCommands:

    指令及指令参数数组。



1985
1986
1987
# File 'lib/v20220527/models.rb', line 1985

def RobotId
  @RobotId
end

#SyncRobotCommandsObject

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RobotId:

    机器人Id。

  • SyncRobotCommands:

    指令及指令参数数组。



1985
1986
1987
# File 'lib/v20220527/models.rb', line 1985

def SyncRobotCommands
  @SyncRobotCommands
end

#UserIdObject

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RobotId:

    机器人Id。

  • SyncRobotCommands:

    指令及指令参数数组。



1985
1986
1987
# File 'lib/v20220527/models.rb', line 1985

def UserId
  @UserId
end

Instance Method Details

#deserialize(params) ⇒ Object



1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
# File 'lib/v20220527/models.rb', line 1994

def deserialize(params)
  @AppName = params['AppName']
  @UserId = params['UserId']
  @RobotId = params['RobotId']
  unless params['SyncRobotCommands'].nil?
    @SyncRobotCommands = []
    params['SyncRobotCommands'].each do |i|
      syncrobotcommand_tmp = SyncRobotCommand.new
      syncrobotcommand_tmp.deserialize(i)
      @SyncRobotCommands << syncrobotcommand_tmp
    end
  end
end