Class: TencentCloud::Mgobe::V20201014::Room
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mgobe::V20201014::Room
- Defined in:
- lib/v20201014/models.rb
Overview
房间信息详情。
Instance Attribute Summary collapse
- #CreateTime ⇒ Object
- #CreateType ⇒ Object
- #CustomProperties ⇒ Object
- #FrameRate ⇒ Object
- #FrameSyncState ⇒ Object
- #Id ⇒ Object
- #IsForbidJoin ⇒ Object
- #IsPrivate ⇒ Object
- #MaxPlayers ⇒ Object
- #Name ⇒ Object
- #Owner ⇒ Object
- #OwnerOpenId ⇒ Object
- #Players ⇒ Object
- #RouteId ⇒ Object
- #StartGameTime ⇒ Object
- #Teams ⇒ Object
- #Type ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#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
constructor
A new instance of Room.
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
#CreateTime ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def CreateTime @CreateTime end |
#CreateType ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def CreateType @CreateType end |
#CustomProperties ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def CustomProperties @CustomProperties end |
#FrameRate ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def FrameRate @FrameRate end |
#FrameSyncState ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def FrameSyncState @FrameSyncState end |
#Id ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def Id @Id end |
#IsForbidJoin ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def IsForbidJoin @IsForbidJoin end |
#IsPrivate ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def IsPrivate @IsPrivate end |
#MaxPlayers ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def MaxPlayers @MaxPlayers end |
#Name ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def Name @Name end |
#Owner ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def Owner @Owner end |
#OwnerOpenId ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def OwnerOpenId @OwnerOpenId end |
#Players ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def Players @Players end |
#RouteId ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def RouteId @RouteId end |
#StartGameTime ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def StartGameTime @StartGameTime end |
#Teams ⇒ Object
443 444 445 |
# File 'lib/v20201014/models.rb', line 443 def Teams @Teams end |
#Type ⇒ Object
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 |