Class: TencentCloud::Irp::V20220324::DocBehavior
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Irp::V20220324::DocBehavior
- Defined in:
- lib/v20220324/models.rb
Overview
行为数据
Instance Attribute Summary collapse
- #AppId ⇒ Object
- #AppVersion ⇒ Object
- #BehaviorTimestamp ⇒ Object
- #BehaviorType ⇒ Object
- #BehaviorValue ⇒ Object
- #City ⇒ Object
- #Country ⇒ Object
- #DeviceModel ⇒ Object
- #District ⇒ Object
- #Extension ⇒ Object
- #IP ⇒ Object
- #ItemId ⇒ Object
- #ItemType ⇒ Object
- #Network ⇒ Object
- #OsVersion ⇒ Object
- #Platform ⇒ Object
- #Province ⇒ Object
- #RecTraceId ⇒ Object
- #ReferrerItemId ⇒ Object
- #SceneId ⇒ Object
- #Source ⇒ Object
- #UserIdList ⇒ Object
- #VideoPlayDuration ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(itemid = nil, behaviortype = nil, behaviorvalue = nil, behaviortimestamp = nil, sceneid = nil, useridlist = nil, rectraceid = nil, source = nil, itemtype = nil, appid = nil, videoplayduration = nil, referreritemid = nil, country = nil, province = nil, city = nil, district = nil, ip = nil, network = nil, platform = nil, appversion = nil, osversion = nil, devicemodel = nil, extension = nil) ⇒ DocBehavior
constructor
A new instance of DocBehavior.
Constructor Details
#initialize(itemid = nil, behaviortype = nil, behaviorvalue = nil, behaviortimestamp = nil, sceneid = nil, useridlist = nil, rectraceid = nil, source = nil, itemtype = nil, appid = nil, videoplayduration = nil, referreritemid = nil, country = nil, province = nil, city = nil, district = nil, ip = nil, network = nil, platform = nil, appversion = nil, osversion = nil, devicemodel = nil, extension = nil) ⇒ DocBehavior
Returns a new instance of DocBehavior.
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/v20220324/models.rb', line 128 def initialize(itemid=nil, behaviortype=nil, behaviorvalue=nil, =nil, sceneid=nil, useridlist=nil, rectraceid=nil, source=nil, itemtype=nil, appid=nil, videoplayduration=nil, referreritemid=nil, country=nil, province=nil, city=nil, district=nil, ip=nil, network=nil, platform=nil, appversion=nil, osversion=nil, devicemodel=nil, extension=nil) @ItemId = itemid @BehaviorType = behaviortype @BehaviorValue = behaviorvalue @BehaviorTimestamp = @SceneId = sceneid @UserIdList = useridlist @RecTraceId = rectraceid @Source = source @ItemType = itemtype @AppId = appid @VideoPlayDuration = videoplayduration @ReferrerItemId = referreritemid @Country = country @Province = province @City = city @District = district @IP = ip @Network = network @Platform = platform @AppVersion = appversion @OsVersion = osversion @DeviceModel = devicemodel @Extension = extension end |
Instance Attribute Details
#AppId ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def AppId @AppId end |
#AppVersion ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def AppVersion @AppVersion end |
#BehaviorTimestamp ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def BehaviorTimestamp @BehaviorTimestamp end |
#BehaviorType ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def BehaviorType @BehaviorType end |
#BehaviorValue ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def BehaviorValue @BehaviorValue end |
#City ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def City @City end |
#Country ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Country @Country end |
#DeviceModel ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def DeviceModel @DeviceModel end |
#District ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def District @District end |
#Extension ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Extension @Extension end |
#IP ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def IP @IP end |
#ItemId ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def ItemId @ItemId end |
#ItemType ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def ItemType @ItemType end |
#Network ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Network @Network end |
#OsVersion ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def OsVersion @OsVersion end |
#Platform ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Platform @Platform end |
#Province ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Province @Province end |
#RecTraceId ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def RecTraceId @RecTraceId end |
#ReferrerItemId ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def ReferrerItemId @ReferrerItemId end |
#SceneId ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def SceneId @SceneId end |
#Source ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def Source @Source end |
#UserIdList ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def UserIdList @UserIdList end |
#VideoPlayDuration ⇒ Object
126 127 128 |
# File 'lib/v20220324/models.rb', line 126 def VideoPlayDuration @VideoPlayDuration end |
Instance Method Details
#deserialize(params) ⇒ Object
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/v20220324/models.rb', line 154 def deserialize(params) @ItemId = params['ItemId'] @BehaviorType = params['BehaviorType'] @BehaviorValue = params['BehaviorValue'] @BehaviorTimestamp = params['BehaviorTimestamp'] @SceneId = params['SceneId'] unless params['UserIdList'].nil? @UserIdList = [] params['UserIdList'].each do |i| useridinfo_tmp = UserIdInfo.new useridinfo_tmp.deserialize(i) @UserIdList << useridinfo_tmp end end @RecTraceId = params['RecTraceId'] @Source = params['Source'] @ItemType = params['ItemType'] @AppId = params['AppId'] @VideoPlayDuration = params['VideoPlayDuration'] @ReferrerItemId = params['ReferrerItemId'] @Country = params['Country'] @Province = params['Province'] @City = params['City'] @District = params['District'] @IP = params['IP'] @Network = params['Network'] @Platform = params['Platform'] @AppVersion = params['AppVersion'] @OsVersion = params['OsVersion'] @DeviceModel = params['DeviceModel'] @Extension = params['Extension'] end |