Class: TencentCloud::Gpm::V20200820::MatchAttribute

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

Overview

玩家匹配属性

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, type = nil, numbervalue = nil, stringvalue = nil, listvalue = nil, mapvalue = nil) ⇒ MatchAttribute

Returns a new instance of MatchAttribute.



809
810
811
812
813
814
815
816
# File 'lib/v20200820/models.rb', line 809

def initialize(name=nil, type=nil, numbervalue=nil, stringvalue=nil, listvalue=nil, mapvalue=nil)
  @Name = name
  @Type = type
  @NumberValue = numbervalue
  @StringValue = stringvalue
  @ListValue = listvalue
  @MapValue = mapvalue
end

Instance Attribute Details

#ListValueObject

Parameters:

  • Name:

    属性名 长度 128 [a-zA-Z0-9-.]*

  • Type:

    属性类型: 0 数值; 1 string; 默认 0

  • NumberValue:

    数字属性值 默认 0.0

  • StringValue:

    字符串属性值 长度 128 默认 “”

  • ListValue:

    list 属性值

  • MapValue:

    字典属性值



807
808
809
# File 'lib/v20200820/models.rb', line 807

def ListValue
  @ListValue
end

#MapValueObject

Parameters:

  • Name:

    属性名 长度 128 [a-zA-Z0-9-.]*

  • Type:

    属性类型: 0 数值; 1 string; 默认 0

  • NumberValue:

    数字属性值 默认 0.0

  • StringValue:

    字符串属性值 长度 128 默认 “”

  • ListValue:

    list 属性值

  • MapValue:

    字典属性值



807
808
809
# File 'lib/v20200820/models.rb', line 807

def MapValue
  @MapValue
end

#NameObject

Parameters:

  • Name:

    属性名 长度 128 [a-zA-Z0-9-.]*

  • Type:

    属性类型: 0 数值; 1 string; 默认 0

  • NumberValue:

    数字属性值 默认 0.0

  • StringValue:

    字符串属性值 长度 128 默认 “”

  • ListValue:

    list 属性值

  • MapValue:

    字典属性值



807
808
809
# File 'lib/v20200820/models.rb', line 807

def Name
  @Name
end

#NumberValueObject

Parameters:

  • Name:

    属性名 长度 128 [a-zA-Z0-9-.]*

  • Type:

    属性类型: 0 数值; 1 string; 默认 0

  • NumberValue:

    数字属性值 默认 0.0

  • StringValue:

    字符串属性值 长度 128 默认 “”

  • ListValue:

    list 属性值

  • MapValue:

    字典属性值



807
808
809
# File 'lib/v20200820/models.rb', line 807

def NumberValue
  @NumberValue
end

#StringValueObject

Parameters:

  • Name:

    属性名 长度 128 [a-zA-Z0-9-.]*

  • Type:

    属性类型: 0 数值; 1 string; 默认 0

  • NumberValue:

    数字属性值 默认 0.0

  • StringValue:

    字符串属性值 长度 128 默认 “”

  • ListValue:

    list 属性值

  • MapValue:

    字典属性值



807
808
809
# File 'lib/v20200820/models.rb', line 807

def StringValue
  @StringValue
end

#TypeObject

Parameters:

  • Name:

    属性名 长度 128 [a-zA-Z0-9-.]*

  • Type:

    属性类型: 0 数值; 1 string; 默认 0

  • NumberValue:

    数字属性值 默认 0.0

  • StringValue:

    字符串属性值 长度 128 默认 “”

  • ListValue:

    list 属性值

  • MapValue:

    字典属性值



807
808
809
# File 'lib/v20200820/models.rb', line 807

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
# File 'lib/v20200820/models.rb', line 818

def deserialize(params)
  @Name = params['Name']
  @Type = params['Type']
  @NumberValue = params['NumberValue']
  @StringValue = params['StringValue']
  @ListValue = params['ListValue']
  unless params['MapValue'].nil?
    @MapValue = []
    params['MapValue'].each do |i|
      attributemap_tmp = AttributeMap.new
      attributemap_tmp.deserialize(i)
      @MapValue << attributemap_tmp
    end
  end
end