Class: TencentCloud::Gs::V20191118::StopGameRequest

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

Overview

StopGame请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(userid = nil, hostuserid = nil) ⇒ StopGameRequest

Returns a new instance of StopGameRequest.



4468
4469
4470
4471
# File 'lib/v20191118/models.rb', line 4468

def initialize(userid=nil, hostuserid=nil)
  @UserId = userid
  @HostUserId = hostuserid
end

Instance Attribute Details

#HostUserIdObject

Parameters:

  • UserId:

    唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)

  • HostUserId:

    【多人游戏】游戏主机用户ID



4466
4467
4468
# File 'lib/v20191118/models.rb', line 4466

def HostUserId
  @HostUserId
end

#UserIdObject

Parameters:

  • UserId:

    唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)

  • HostUserId:

    【多人游戏】游戏主机用户ID



4466
4467
4468
# File 'lib/v20191118/models.rb', line 4466

def UserId
  @UserId
end

Instance Method Details

#deserialize(params) ⇒ Object



4473
4474
4475
4476
# File 'lib/v20191118/models.rb', line 4473

def deserialize(params)
  @UserId = params['UserId']
  @HostUserId = params['HostUserId']
end