Class: TencentCloud::Gpm::V20200820::StartMatchingBackfillRequest

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

Overview

StartMatchingBackfill请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matchcode = nil, players = nil, gameserversessionid = nil, matchticketid = nil) ⇒ StartMatchingBackfillRequest

Returns a new instance of StartMatchingBackfillRequest.



1553
1554
1555
1556
1557
1558
# File 'lib/v20200820/models.rb', line 1553

def initialize(matchcode=nil, players=nil, gameserversessionid=nil, matchticketid=nil)
  @MatchCode = matchcode
  @Players = players
  @GameServerSessionId = gameserversessionid
  @MatchTicketId = matchticketid
end

Instance Attribute Details

#GameServerSessionIdObject

Parameters:

  • MatchCode:

    匹配code

  • Players:

    玩家信息

  • GameServerSessionId:

    游戏服务器回话 ID [1-256] 个ASCII 字符

  • MatchTicketId:

    匹配票据 Id 默认 “” 为空则由 GPM 自动生成 长度 [1, 128]



1551
1552
1553
# File 'lib/v20200820/models.rb', line 1551

def GameServerSessionId
  @GameServerSessionId
end

#MatchCodeObject

Parameters:

  • MatchCode:

    匹配code

  • Players:

    玩家信息

  • GameServerSessionId:

    游戏服务器回话 ID [1-256] 个ASCII 字符

  • MatchTicketId:

    匹配票据 Id 默认 “” 为空则由 GPM 自动生成 长度 [1, 128]



1551
1552
1553
# File 'lib/v20200820/models.rb', line 1551

def MatchCode
  @MatchCode
end

#MatchTicketIdObject

Parameters:

  • MatchCode:

    匹配code

  • Players:

    玩家信息

  • GameServerSessionId:

    游戏服务器回话 ID [1-256] 个ASCII 字符

  • MatchTicketId:

    匹配票据 Id 默认 “” 为空则由 GPM 自动生成 长度 [1, 128]



1551
1552
1553
# File 'lib/v20200820/models.rb', line 1551

def MatchTicketId
  @MatchTicketId
end

#PlayersObject

Parameters:

  • MatchCode:

    匹配code

  • Players:

    玩家信息

  • GameServerSessionId:

    游戏服务器回话 ID [1-256] 个ASCII 字符

  • MatchTicketId:

    匹配票据 Id 默认 “” 为空则由 GPM 自动生成 长度 [1, 128]



1551
1552
1553
# File 'lib/v20200820/models.rb', line 1551

def Players
  @Players
end

Instance Method Details

#deserialize(params) ⇒ Object



1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
# File 'lib/v20200820/models.rb', line 1560

def deserialize(params)
  @MatchCode = params['MatchCode']
  unless params['Players'].nil?
    @Players = []
    params['Players'].each do |i|
      player_tmp = Player.new
      player_tmp.deserialize(i)
      @Players << player_tmp
    end
  end
  @GameServerSessionId = params['GameServerSessionId']
  @MatchTicketId = params['MatchTicketId']
end