Class: TencentCloud::Gse::V20191112::DescribePlayerSessionsResponse

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

Overview

DescribePlayerSessions返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(playersessions = nil, nexttoken = nil, requestid = nil) ⇒ DescribePlayerSessionsResponse

Returns a new instance of DescribePlayerSessionsResponse.



2447
2448
2449
2450
2451
# File 'lib/v20191112/models.rb', line 2447

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

Instance Attribute Details

#NextTokenObject

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

Parameters:

  • PlayerSessions:

    玩家会话列表

  • NextToken:

    页偏移,用于查询下一页,最小长度不小于1个ASCII字符,最大长度不超过1024个ASCII字符

  • RequestId:

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



2445
2446
2447
# File 'lib/v20191112/models.rb', line 2445

def NextToken
  @NextToken
end

#PlayerSessionsObject

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

Parameters:

  • PlayerSessions:

    玩家会话列表

  • NextToken:

    页偏移,用于查询下一页,最小长度不小于1个ASCII字符,最大长度不超过1024个ASCII字符

  • RequestId:

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



2445
2446
2447
# File 'lib/v20191112/models.rb', line 2445

def PlayerSessions
  @PlayerSessions
end

#RequestIdObject

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

Parameters:

  • PlayerSessions:

    玩家会话列表

  • NextToken:

    页偏移,用于查询下一页,最小长度不小于1个ASCII字符,最大长度不超过1024个ASCII字符

  • RequestId:

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



2445
2446
2447
# File 'lib/v20191112/models.rb', line 2445

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
# File 'lib/v20191112/models.rb', line 2453

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
  @NextToken = params['NextToken']
  @RequestId = params['RequestId']
end