Class: TencentCloud::Mgobe::V20201014::ChangeRoomPlayerStatusRequest

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

Overview

ChangeRoomPlayerStatus请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gameid = nil, customstatus = nil, playerid = nil) ⇒ ChangeRoomPlayerStatusRequest

Returns a new instance of ChangeRoomPlayerStatusRequest.



78
79
80
81
82
# File 'lib/v20201014/models.rb', line 78

def initialize(gameid=nil, customstatus=nil, playerid=nil)
  @GameId = gameid
  @CustomStatus = customstatus
  @PlayerId = playerid
end

Instance Attribute Details

#CustomStatusObject

Parameters:

  • GameId:

    游戏资源Id。

  • CustomStatus:

    玩家自定义状态。

  • PlayerId:

    玩家id。



76
77
78
# File 'lib/v20201014/models.rb', line 76

def CustomStatus
  @CustomStatus
end

#GameIdObject

Parameters:

  • GameId:

    游戏资源Id。

  • CustomStatus:

    玩家自定义状态。

  • PlayerId:

    玩家id。



76
77
78
# File 'lib/v20201014/models.rb', line 76

def GameId
  @GameId
end

#PlayerIdObject

Parameters:

  • GameId:

    游戏资源Id。

  • CustomStatus:

    玩家自定义状态。

  • PlayerId:

    玩家id。



76
77
78
# File 'lib/v20201014/models.rb', line 76

def PlayerId
  @PlayerId
end

Instance Method Details

#deserialize(params) ⇒ Object



84
85
86
87
88
# File 'lib/v20201014/models.rb', line 84

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