Class: TencentCloud::Tbm::V20180129::DescribeBrandNegCommentsResponse

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

Overview

DescribeBrandNegComments返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(brandcommentset = nil, totalcomments = nil, requestid = nil) ⇒ DescribeBrandNegCommentsResponse

Returns a new instance of DescribeBrandNegCommentsResponse.



379
380
381
382
383
# File 'lib/v20180129/models.rb', line 379

def initialize(brandcommentset=nil, totalcomments=nil, requestid=nil)
  @BrandCommentSet = brandcommentset
  @TotalComments = totalcomments
  @RequestId = requestid
end

Instance Attribute Details

#BrandCommentSetObject

Parameters:

  • BrandCommentSet:

    评论列表

  • TotalComments:

    总的差评个数

  • RequestId:

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



377
378
379
# File 'lib/v20180129/models.rb', line 377

def BrandCommentSet
  @BrandCommentSet
end

#RequestIdObject

Parameters:

  • BrandCommentSet:

    评论列表

  • TotalComments:

    总的差评个数

  • RequestId:

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



377
378
379
# File 'lib/v20180129/models.rb', line 377

def RequestId
  @RequestId
end

#TotalCommentsObject

Parameters:

  • BrandCommentSet:

    评论列表

  • TotalComments:

    总的差评个数

  • RequestId:

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



377
378
379
# File 'lib/v20180129/models.rb', line 377

def TotalComments
  @TotalComments
end

Instance Method Details

#deserialize(params) ⇒ Object



385
386
387
388
389
390
391
392
393
394
395
396
# File 'lib/v20180129/models.rb', line 385

def deserialize(params)
  unless params['BrandCommentSet'].nil?
    @BrandCommentSet = []
    params['BrandCommentSet'].each do |i|
      commentinfo_tmp = CommentInfo.new
      commentinfo_tmp.deserialize(i)
      @BrandCommentSet << commentinfo_tmp
    end
  end
  @TotalComments = params['TotalComments']
  @RequestId = params['RequestId']
end