Class: TencentCloud::Wedata::V20210820::TaskCollectionParamDTO

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

Overview

分页数据集

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, pagecount = nil, items = nil) ⇒ TaskCollectionParamDTO

Returns a new instance of TaskCollectionParamDTO.



36519
36520
36521
36522
36523
# File 'lib/v20210820/models.rb', line 36519

def initialize(totalcount=nil, pagecount=nil, items=nil)
  @TotalCount = totalcount
  @PageCount = pagecount
  @Items = items
end

Instance Attribute Details

#ItemsObject

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

Parameters:

  • TotalCount:

    总数据条数

  • PageCount:

    总页数

  • Items:

    数据



36517
36518
36519
# File 'lib/v20210820/models.rb', line 36517

def Items
  @Items
end

#PageCountObject

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

Parameters:

  • TotalCount:

    总数据条数

  • PageCount:

    总页数

  • Items:

    数据



36517
36518
36519
# File 'lib/v20210820/models.rb', line 36517

def PageCount
  @PageCount
end

#TotalCountObject

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

Parameters:

  • TotalCount:

    总数据条数

  • PageCount:

    总页数

  • Items:

    数据



36517
36518
36519
# File 'lib/v20210820/models.rb', line 36517

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
# File 'lib/v20210820/models.rb', line 36525

def deserialize(params)
  @TotalCount = params['TotalCount']
  @PageCount = params['PageCount']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      taskformparams_tmp = TaskFormParams.new
      taskformparams_tmp.deserialize(i)
      @Items << taskformparams_tmp
    end
  end
end