Class: TencentCloud::Mgobe::V20201014::Team

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

Overview

团队属性

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, name = nil, minplayers = nil, maxplayers = nil) ⇒ Team

Returns a new instance of Team.



513
514
515
516
517
518
# File 'lib/v20201014/models.rb', line 513

def initialize(id=nil, name=nil, minplayers=nil, maxplayers=nil)
  @Id = id
  @Name = name
  @MinPlayers = minplayers
  @MaxPlayers = maxplayers
end

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    队伍ID。最长不超过16个字符。

  • Name:

    队伍名称。最长不超过32个字符。

  • MinPlayers:

    队伍最小人数。最大不超过100人。

  • MaxPlayers:

    队伍最大人数。最大不超过100人。



511
512
513
# File 'lib/v20201014/models.rb', line 511

def Id
  @Id
end

#MaxPlayersObject

Parameters:

  • Id:

    队伍ID。最长不超过16个字符。

  • Name:

    队伍名称。最长不超过32个字符。

  • MinPlayers:

    队伍最小人数。最大不超过100人。

  • MaxPlayers:

    队伍最大人数。最大不超过100人。



511
512
513
# File 'lib/v20201014/models.rb', line 511

def MaxPlayers
  @MaxPlayers
end

#MinPlayersObject

Parameters:

  • Id:

    队伍ID。最长不超过16个字符。

  • Name:

    队伍名称。最长不超过32个字符。

  • MinPlayers:

    队伍最小人数。最大不超过100人。

  • MaxPlayers:

    队伍最大人数。最大不超过100人。



511
512
513
# File 'lib/v20201014/models.rb', line 511

def MinPlayers
  @MinPlayers
end

#NameObject

Parameters:

  • Id:

    队伍ID。最长不超过16个字符。

  • Name:

    队伍名称。最长不超过32个字符。

  • MinPlayers:

    队伍最小人数。最大不超过100人。

  • MaxPlayers:

    队伍最大人数。最大不超过100人。



511
512
513
# File 'lib/v20201014/models.rb', line 511

def Name
  @Name
end

Instance Method Details

#deserialize(params) ⇒ Object



520
521
522
523
524
525
# File 'lib/v20201014/models.rb', line 520

def deserialize(params)
  @Id = params['Id']
  @Name = params['Name']
  @MinPlayers = params['MinPlayers']
  @MaxPlayers = params['MaxPlayers']
end