Class: TencentCloud::Gpm::V20200820::Player
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Gpm::V20200820::Player
- Defined in:
- lib/v20200820/models.rb
Overview
玩家信息。
Instance Attribute Summary collapse
- #CustomPlayerStatus ⇒ Object
- #CustomProfile ⇒ Object
- #Id ⇒ Object
- #MatchAttributes ⇒ Object
- #Name ⇒ Object
- #RegionLatencies ⇒ Object
- #Team ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, matchattributes = nil, team = nil, customplayerstatus = nil, customprofile = nil, regionlatencies = nil) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(id = nil, name = nil, matchattributes = nil, team = nil, customplayerstatus = nil, customprofile = nil, regionlatencies = nil) ⇒ Player
Returns a new instance of Player.
1290 1291 1292 1293 1294 1295 1296 1297 1298 |
# File 'lib/v20200820/models.rb', line 1290 def initialize(id=nil, name=nil, matchattributes=nil, team=nil, customplayerstatus=nil, customprofile=nil, regionlatencies=nil) @Id = id @Name = name @MatchAttributes = matchattributes @Team = team @CustomPlayerStatus = customplayerstatus @CustomProfile = customprofile @RegionLatencies = regionlatencies end |
Instance Attribute Details
#CustomPlayerStatus ⇒ Object
1288 1289 1290 |
# File 'lib/v20200820/models.rb', line 1288 def CustomPlayerStatus @CustomPlayerStatus end |
#CustomProfile ⇒ Object
1288 1289 1290 |
# File 'lib/v20200820/models.rb', line 1288 def CustomProfile @CustomProfile end |
#Id ⇒ Object
1288 1289 1290 |
# File 'lib/v20200820/models.rb', line 1288 def Id @Id end |
#MatchAttributes ⇒ Object
1288 1289 1290 |
# File 'lib/v20200820/models.rb', line 1288 def MatchAttributes @MatchAttributes end |
#Name ⇒ Object
1288 1289 1290 |
# File 'lib/v20200820/models.rb', line 1288 def Name @Name end |
#RegionLatencies ⇒ Object
1288 1289 1290 |
# File 'lib/v20200820/models.rb', line 1288 def RegionLatencies @RegionLatencies end |
#Team ⇒ Object
1288 1289 1290 |
# File 'lib/v20200820/models.rb', line 1288 def Team @Team end |
Instance Method Details
#deserialize(params) ⇒ Object
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 |
# File 'lib/v20200820/models.rb', line 1300 def deserialize(params) @Id = params['Id'] @Name = params['Name'] unless params['MatchAttributes'].nil? @MatchAttributes = [] params['MatchAttributes'].each do |i| matchattribute_tmp = MatchAttribute.new matchattribute_tmp.deserialize(i) @MatchAttributes << matchattribute_tmp end end @Team = params['Team'] @CustomPlayerStatus = params['CustomPlayerStatus'] @CustomProfile = params['CustomProfile'] unless params['RegionLatencies'].nil? @RegionLatencies = [] params['RegionLatencies'].each do |i| regionlatency_tmp = RegionLatency.new regionlatency_tmp.deserialize(i) @RegionLatencies << regionlatency_tmp end end end |