Class: TencentCloud::Mgobe::V20201014::Player
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mgobe::V20201014::Player
- Defined in:
- lib/v20201014/models.rb
Overview
玩家信息详情
Instance Attribute Summary collapse
- #CustomPlayerStatus ⇒ Object
- #CustomProfile ⇒ Object
- #IsRobot ⇒ Object
- #Name ⇒ Object
- #OpenId ⇒ Object
- #PlayerId ⇒ Object
- #TeamId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(openid = nil, name = nil, teamid = nil, isrobot = nil, playerid = nil, customplayerstatus = nil, customprofile = nil) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(openid = nil, name = nil, teamid = nil, isrobot = nil, playerid = nil, customplayerstatus = nil, customprofile = nil) ⇒ Player
Returns a new instance of Player.
342 343 344 345 346 347 348 349 350 |
# File 'lib/v20201014/models.rb', line 342 def initialize(openid=nil, name=nil, teamid=nil, isrobot=nil, playerid=nil, customplayerstatus=nil, customprofile=nil) @OpenId = openid @Name = name @TeamId = teamid @IsRobot = isrobot @PlayerId = playerid @CustomPlayerStatus = customplayerstatus @CustomProfile = customprofile end |
Instance Attribute Details
#CustomPlayerStatus ⇒ Object
340 341 342 |
# File 'lib/v20201014/models.rb', line 340 def CustomPlayerStatus @CustomPlayerStatus end |
#CustomProfile ⇒ Object
340 341 342 |
# File 'lib/v20201014/models.rb', line 340 def CustomProfile @CustomProfile end |
#IsRobot ⇒ Object
340 341 342 |
# File 'lib/v20201014/models.rb', line 340 def IsRobot @IsRobot end |
#Name ⇒ Object
340 341 342 |
# File 'lib/v20201014/models.rb', line 340 def Name @Name end |
#OpenId ⇒ Object
340 341 342 |
# File 'lib/v20201014/models.rb', line 340 def OpenId @OpenId end |
#PlayerId ⇒ Object
340 341 342 |
# File 'lib/v20201014/models.rb', line 340 def PlayerId @PlayerId end |
#TeamId ⇒ Object
340 341 342 |
# File 'lib/v20201014/models.rb', line 340 def TeamId @TeamId end |
Instance Method Details
#deserialize(params) ⇒ Object
352 353 354 355 356 357 358 359 360 |
# File 'lib/v20201014/models.rb', line 352 def deserialize(params) @OpenId = params['OpenId'] @Name = params['Name'] @TeamId = params['TeamId'] @IsRobot = params['IsRobot'] @PlayerId = params['PlayerId'] @CustomPlayerStatus = params['CustomPlayerStatus'] @CustomProfile = params['CustomProfile'] end |