Class: TencentCloud::Irp::V20220805::ReportGoodsBehaviorRequest

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

Overview

ReportGoodsBehavior请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, goodsbehaviorlist = nil) ⇒ ReportGoodsBehaviorRequest

Returns a new instance of ReportGoodsBehaviorRequest.



956
957
958
959
# File 'lib/v20220805/models.rb', line 956

def initialize(instanceid=nil, goodsbehaviorlist=nil)
  @InstanceId = instanceid
  @GoodsBehaviorList = goodsbehaviorlist
end

Instance Attribute Details

#GoodsBehaviorListObject

Parameters:

  • InstanceId:

    实例ID,在控制台获取

  • GoodsBehaviorList:

    上报的商品对应的用户行为数据数组,数量不超过50



954
955
956
# File 'lib/v20220805/models.rb', line 954

def GoodsBehaviorList
  @GoodsBehaviorList
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例ID,在控制台获取

  • GoodsBehaviorList:

    上报的商品对应的用户行为数据数组,数量不超过50



954
955
956
# File 'lib/v20220805/models.rb', line 954

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



961
962
963
964
965
966
967
968
969
970
971
# File 'lib/v20220805/models.rb', line 961

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['GoodsBehaviorList'].nil?
    @GoodsBehaviorList = []
    params['GoodsBehaviorList'].each do |i|
      goodsbehaviorinfo_tmp = GoodsBehaviorInfo.new
      goodsbehaviorinfo_tmp.deserialize(i)
      @GoodsBehaviorList << goodsbehaviorinfo_tmp
    end
  end
end