Class: TencentCloud::Yinsuda::V20220527::SyncKTVRobotCommandRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Yinsuda::V20220527::SyncKTVRobotCommandRequest
- Defined in:
- lib/v20220527/models.rb
Overview
SyncKTVRobotCommand请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(appname = nil, userid = nil, robotid = nil, syncrobotcommands = nil) ⇒ SyncKTVRobotCommandRequest
constructor
A new instance of SyncKTVRobotCommandRequest.
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
#AppName ⇒ Object
1985 1986 1987 |
# File 'lib/v20220527/models.rb', line 1985 def AppName @AppName end |
#RobotId ⇒ Object
1985 1986 1987 |
# File 'lib/v20220527/models.rb', line 1985 def RobotId @RobotId end |
#SyncRobotCommands ⇒ Object
1985 1986 1987 |
# File 'lib/v20220527/models.rb', line 1985 def SyncRobotCommands @SyncRobotCommands end |
#UserId ⇒ Object
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 |