Class: TencentCloud::Yinsuda::V20220527::CreateKTVRobotRequest

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

Overview

CreateKTVRobot请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(appname = nil, userid = nil, rtcsystem = nil, joinroominput = nil, syncrobotcommands = nil) ⇒ CreateKTVRobotRequest

Returns a new instance of CreateKTVRobotRequest.



204
205
206
207
208
209
210
# File 'lib/v20220527/models.rb', line 204

def initialize(appname=nil, userid=nil, rtcsystem=nil, joinroominput=nil, syncrobotcommands=nil)
  @AppName = appname
  @UserId = userid
  @RTCSystem = rtcsystem
  @JoinRoomInput = joinroominput
  @SyncRobotCommands = syncrobotcommands
end

Instance Attribute Details

#AppNameObject

<li>TRTC</li>

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RTCSystem:

    RTC厂商类型,取值有:

  • JoinRoomInput:

    进房参数。

  • SyncRobotCommands:

    创建机器人时初始化参数。



202
203
204
# File 'lib/v20220527/models.rb', line 202

def AppName
  @AppName
end

#JoinRoomInputObject

<li>TRTC</li>

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RTCSystem:

    RTC厂商类型,取值有:

  • JoinRoomInput:

    进房参数。

  • SyncRobotCommands:

    创建机器人时初始化参数。



202
203
204
# File 'lib/v20220527/models.rb', line 202

def JoinRoomInput
  @JoinRoomInput
end

#RTCSystemObject

<li>TRTC</li>

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RTCSystem:

    RTC厂商类型,取值有:

  • JoinRoomInput:

    进房参数。

  • SyncRobotCommands:

    创建机器人时初始化参数。



202
203
204
# File 'lib/v20220527/models.rb', line 202

def RTCSystem
  @RTCSystem
end

#SyncRobotCommandsObject

<li>TRTC</li>

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RTCSystem:

    RTC厂商类型,取值有:

  • JoinRoomInput:

    进房参数。

  • SyncRobotCommands:

    创建机器人时初始化参数。



202
203
204
# File 'lib/v20220527/models.rb', line 202

def SyncRobotCommands
  @SyncRobotCommands
end

#UserIdObject

<li>TRTC</li>

Parameters:

  • AppName:

    应用名称。

  • UserId:

    用户标识。

  • RTCSystem:

    RTC厂商类型,取值有:

  • JoinRoomInput:

    进房参数。

  • SyncRobotCommands:

    创建机器人时初始化参数。



202
203
204
# File 'lib/v20220527/models.rb', line 202

def UserId
  @UserId
end

Instance Method Details

#deserialize(params) ⇒ Object



212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/v20220527/models.rb', line 212

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