Class: TencentCloud::Gpm::V20200820::StartMatchingRequest

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

Overview

StartMatching请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matchcode = nil, players = nil, matchticketid = nil) ⇒ StartMatchingRequest

Returns a new instance of StartMatchingRequest.



1610
1611
1612
1613
1614
# File 'lib/v20200820/models.rb', line 1610

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

Instance Attribute Details

#MatchCodeObject

Parameters:

  • MatchCode:

    匹配 Code。

  • Players:

    玩家信息 最多 200 条。

  • MatchTicketId:

    匹配票据 ID 默认空字符串,为空则由 GPM 自动生成 长度 128,只能包含数字、字母、. 和 -



1608
1609
1610
# File 'lib/v20200820/models.rb', line 1608

def MatchCode
  @MatchCode
end

#MatchTicketIdObject

Parameters:

  • MatchCode:

    匹配 Code。

  • Players:

    玩家信息 最多 200 条。

  • MatchTicketId:

    匹配票据 ID 默认空字符串,为空则由 GPM 自动生成 长度 128,只能包含数字、字母、. 和 -



1608
1609
1610
# File 'lib/v20200820/models.rb', line 1608

def MatchTicketId
  @MatchTicketId
end

#PlayersObject

Parameters:

  • MatchCode:

    匹配 Code。

  • Players:

    玩家信息 最多 200 条。

  • MatchTicketId:

    匹配票据 ID 默认空字符串,为空则由 GPM 自动生成 长度 128,只能包含数字、字母、. 和 -



1608
1609
1610
# File 'lib/v20200820/models.rb', line 1608

def Players
  @Players
end

Instance Method Details

#deserialize(params) ⇒ Object



1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
# File 'lib/v20200820/models.rb', line 1616

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
  @MatchTicketId = params['MatchTicketId']
end