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.



38057
38058
38059
38060
38061
# File 'lib/v20210820/models.rb', line 38057

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

Instance Attribute Details

#ItemsObject

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

Parameters:

  • 总数据条数

  • 总页数

  • 数据



38055
38056
38057
# File 'lib/v20210820/models.rb', line 38055

def Items
  @Items
end

#PageCountObject

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

Parameters:

  • 总数据条数

  • 总页数

  • 数据



38055
38056
38057
# File 'lib/v20210820/models.rb', line 38055

def PageCount
  @PageCount
end

#TotalCountObject

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

Parameters:

  • 总数据条数

  • 总页数

  • 数据



38055
38056
38057
# File 'lib/v20210820/models.rb', line 38055

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



38063
38064
38065
38066
38067
38068
38069
38070
38071
38072
38073
38074
# File 'lib/v20210820/models.rb', line 38063

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