Class: TencentCloud::Gse::V20191112::JoinGameServerSessionBatchResponse

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

Overview

JoinGameServerSessionBatch返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(playersessions = nil, requestid = nil) ⇒ JoinGameServerSessionBatchResponse

Returns a new instance of JoinGameServerSessionBatchResponse.



4211
4212
4213
4214
# File 'lib/v20191112/models.rb', line 4211

def initialize(playersessions=nil, requestid=nil)
  @PlayerSessions = playersessions
  @RequestId = requestid
end

Instance Attribute Details

#PlayerSessionsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PlayerSessions:

    玩家会话列表,最大25组

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



4209
4210
4211
# File 'lib/v20191112/models.rb', line 4209

def PlayerSessions
  @PlayerSessions
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PlayerSessions:

    玩家会话列表,最大25组

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



4209
4210
4211
# File 'lib/v20191112/models.rb', line 4209

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
# File 'lib/v20191112/models.rb', line 4216

def deserialize(params)
  unless params['PlayerSessions'].nil?
    @PlayerSessions = []
    params['PlayerSessions'].each do |i|
      playersession_tmp = PlayerSession.new
      playersession_tmp.deserialize(i)
      @PlayerSessions << playersession_tmp
    end
  end
  @RequestId = params['RequestId']
end