Class: TencentCloud::Mgobe::V20201014::Room

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

Overview

房间信息详情。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, maxplayers = nil, owneropenid = nil, isprivate = nil, players = nil, teams = nil, id = nil, type = nil, createtype = nil, customproperties = nil, framesyncstate = nil, framerate = nil, routeid = nil, createtime = nil, startgametime = nil, isforbidjoin = nil, owner = nil) ⇒ Room



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
# File 'lib/v20201014/models.rb', line 445

def initialize(name=nil, maxplayers=nil, owneropenid=nil, isprivate=nil, players=nil, teams=nil, id=nil, type=nil, createtype=nil, customproperties=nil, framesyncstate=nil, framerate=nil, routeid=nil, createtime=nil, startgametime=nil, isforbidjoin=nil, owner=nil)
  @Name = name
  @MaxPlayers = maxplayers
  @OwnerOpenId = owneropenid
  @IsPrivate = isprivate
  @Players = players
  @Teams = teams
  @Id = id
  @Type = type
  @CreateType = createtype
  @CustomProperties = customproperties
  @FrameSyncState = framesyncstate
  @FrameRate = framerate
  @RouteId = routeid
  @CreateTime = createtime
  @StartGameTime = startgametime
  @IsForbidJoin = isforbidjoin
  @Owner = owner
end

Instance Attribute Details

#CreateTimeObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def CreateTime
  @CreateTime
end

#CreateTypeObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def CreateType
  @CreateType
end

#CustomPropertiesObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def CustomProperties
  @CustomProperties
end

#FrameRateObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def FrameRate
  @FrameRate
end

#FrameSyncStateObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def FrameSyncState
  @FrameSyncState
end

#IdObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def Id
  @Id
end

#IsForbidJoinObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def IsForbidJoin
  @IsForbidJoin
end

#IsPrivateObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def IsPrivate
  @IsPrivate
end

#MaxPlayersObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def MaxPlayers
  @MaxPlayers
end

#NameObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def Name
  @Name
end

#OwnerObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def Owner
  @Owner
end

#OwnerOpenIdObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def OwnerOpenId
  @OwnerOpenId
end

#PlayersObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def Players
  @Players
end

#RouteIdObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def RouteId
  @RouteId
end

#StartGameTimeObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def StartGameTime
  @StartGameTime
end

#TeamsObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def Teams
  @Teams
end

#TypeObject



443
444
445
# File 'lib/v20201014/models.rb', line 443

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
# File 'lib/v20201014/models.rb', line 465

def deserialize(params)
  @Name = params['Name']
  @MaxPlayers = params['MaxPlayers']
  @OwnerOpenId = params['OwnerOpenId']
  @IsPrivate = params['IsPrivate']
  unless params['Players'].nil?
    @Players = []
    params['Players'].each do |i|
      player_tmp = Player.new
      player_tmp.deserialize(i)
      @Players << player_tmp
    end
  end
  unless params['Teams'].nil?
    @Teams = []
    params['Teams'].each do |i|
      team_tmp = Team.new
      team_tmp.deserialize(i)
      @Teams << team_tmp
    end
  end
  @Id = params['Id']
  @Type = params['Type']
  @CreateType = params['CreateType']
  @CustomProperties = params['CustomProperties']
  @FrameSyncState = params['FrameSyncState']
  @FrameRate = params['FrameRate']
  @RouteId = params['RouteId']
  @CreateTime = params['CreateTime']
  @StartGameTime = params['StartGameTime']
  @IsForbidJoin = params['IsForbidJoin']
  @Owner = params['Owner']
end