Class: TencentCloud::Mgobe::V20201014::ChangeRoomPlayerProfileRequest

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

Overview

ChangeRoomPlayerProfile请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gameid = nil, playerid = nil, customprofile = nil) ⇒ ChangeRoomPlayerProfileRequest

Returns a new instance of ChangeRoomPlayerProfileRequest.



31
32
33
34
35
# File 'lib/v20201014/models.rb', line 31

def initialize(gameid=nil, playerid=nil, customprofile=nil)
  @GameId = gameid
  @PlayerId = playerid
  @CustomProfile = customprofile
end

Instance Attribute Details

#CustomProfileObject

Parameters:

  • GameId:

    游戏资源Id。

  • PlayerId:

    发起修改的玩家Id。

  • CustomProfile:

    需要修改的玩家自定义属性。



29
30
31
# File 'lib/v20201014/models.rb', line 29

def CustomProfile
  @CustomProfile
end

#GameIdObject

Parameters:

  • GameId:

    游戏资源Id。

  • PlayerId:

    发起修改的玩家Id。

  • CustomProfile:

    需要修改的玩家自定义属性。



29
30
31
# File 'lib/v20201014/models.rb', line 29

def GameId
  @GameId
end

#PlayerIdObject

Parameters:

  • GameId:

    游戏资源Id。

  • PlayerId:

    发起修改的玩家Id。

  • CustomProfile:

    需要修改的玩家自定义属性。



29
30
31
# File 'lib/v20201014/models.rb', line 29

def PlayerId
  @PlayerId
end

Instance Method Details

#deserialize(params) ⇒ Object



37
38
39
40
41
# File 'lib/v20201014/models.rb', line 37

def deserialize(params)
  @GameId = params['GameId']
  @PlayerId = params['PlayerId']
  @CustomProfile = params['CustomProfile']
end