Class: TencentCloud::Gpm::V20200820::Player

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

Overview

玩家信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CustomPlayerStatusObject

Parameters:

  • Id:

    玩家 PlayerId 长度 128 [a-zA-Zd-._]*

  • Name:

    玩家昵称,长度 128

  • MatchAttributes:

    玩家匹配属性,最多 10 条

  • Team:

    队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-.]*

  • CustomPlayerStatus:

    自定义玩家状态 透传参数 [0, 99999]

  • CustomProfile:

    自定义玩家信息 透传参数 长度 1024

  • RegionLatencies:

    各区域延迟,最多 20 条



1288
1289
1290
# File 'lib/v20200820/models.rb', line 1288

def CustomPlayerStatus
  @CustomPlayerStatus
end

#CustomProfileObject

Parameters:

  • Id:

    玩家 PlayerId 长度 128 [a-zA-Zd-._]*

  • Name:

    玩家昵称,长度 128

  • MatchAttributes:

    玩家匹配属性,最多 10 条

  • Team:

    队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-.]*

  • CustomPlayerStatus:

    自定义玩家状态 透传参数 [0, 99999]

  • CustomProfile:

    自定义玩家信息 透传参数 长度 1024

  • RegionLatencies:

    各区域延迟,最多 20 条



1288
1289
1290
# File 'lib/v20200820/models.rb', line 1288

def CustomProfile
  @CustomProfile
end

#IdObject

Parameters:

  • Id:

    玩家 PlayerId 长度 128 [a-zA-Zd-._]*

  • Name:

    玩家昵称,长度 128

  • MatchAttributes:

    玩家匹配属性,最多 10 条

  • Team:

    队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-.]*

  • CustomPlayerStatus:

    自定义玩家状态 透传参数 [0, 99999]

  • CustomProfile:

    自定义玩家信息 透传参数 长度 1024

  • RegionLatencies:

    各区域延迟,最多 20 条



1288
1289
1290
# File 'lib/v20200820/models.rb', line 1288

def Id
  @Id
end

#MatchAttributesObject

Parameters:

  • Id:

    玩家 PlayerId 长度 128 [a-zA-Zd-._]*

  • Name:

    玩家昵称,长度 128

  • MatchAttributes:

    玩家匹配属性,最多 10 条

  • Team:

    队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-.]*

  • CustomPlayerStatus:

    自定义玩家状态 透传参数 [0, 99999]

  • CustomProfile:

    自定义玩家信息 透传参数 长度 1024

  • RegionLatencies:

    各区域延迟,最多 20 条



1288
1289
1290
# File 'lib/v20200820/models.rb', line 1288

def MatchAttributes
  @MatchAttributes
end

#NameObject

Parameters:

  • Id:

    玩家 PlayerId 长度 128 [a-zA-Zd-._]*

  • Name:

    玩家昵称,长度 128

  • MatchAttributes:

    玩家匹配属性,最多 10 条

  • Team:

    队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-.]*

  • CustomPlayerStatus:

    自定义玩家状态 透传参数 [0, 99999]

  • CustomProfile:

    自定义玩家信息 透传参数 长度 1024

  • RegionLatencies:

    各区域延迟,最多 20 条



1288
1289
1290
# File 'lib/v20200820/models.rb', line 1288

def Name
  @Name
end

#RegionLatenciesObject

Parameters:

  • Id:

    玩家 PlayerId 长度 128 [a-zA-Zd-._]*

  • Name:

    玩家昵称,长度 128

  • MatchAttributes:

    玩家匹配属性,最多 10 条

  • Team:

    队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-.]*

  • CustomPlayerStatus:

    自定义玩家状态 透传参数 [0, 99999]

  • CustomProfile:

    自定义玩家信息 透传参数 长度 1024

  • RegionLatencies:

    各区域延迟,最多 20 条



1288
1289
1290
# File 'lib/v20200820/models.rb', line 1288

def RegionLatencies
  @RegionLatencies
end

#TeamObject

Parameters:

  • Id:

    玩家 PlayerId 长度 128 [a-zA-Zd-._]*

  • Name:

    玩家昵称,长度 128

  • MatchAttributes:

    玩家匹配属性,最多 10 条

  • Team:

    队伍名,可以传递不同队伍名,长度 128 [a-zA-Z0-9-.]*

  • CustomPlayerStatus:

    自定义玩家状态 透传参数 [0, 99999]

  • CustomProfile:

    自定义玩家信息 透传参数 长度 1024

  • RegionLatencies:

    各区域延迟,最多 20 条



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