Class: TencentCloud::Tbm::V20180129::DescribeBrandPosCommentsResponse

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

Overview

DescribeBrandPosComments返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeBrandPosCommentsResponse.



442
443
444
445
446
# File 'lib/v20180129/models.rb', line 442

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。



440
441
442
# File 'lib/v20180129/models.rb', line 440

def BrandCommentSet
  @BrandCommentSet
end

#RequestIdObject

Parameters:

  • BrandCommentSet:

    评论列表

  • TotalComments:

    总的好评个数

  • RequestId:

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



440
441
442
# File 'lib/v20180129/models.rb', line 440

def RequestId
  @RequestId
end

#TotalCommentsObject

Parameters:

  • BrandCommentSet:

    评论列表

  • TotalComments:

    总的好评个数

  • RequestId:

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



440
441
442
# File 'lib/v20180129/models.rb', line 440

def TotalComments
  @TotalComments
end

Instance Method Details

#deserialize(params) ⇒ Object



448
449
450
451
452
453
454
455
456
457
458
459
# File 'lib/v20180129/models.rb', line 448

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