Class: TencentCloud::Iotexplorer::V20190423::FenceEventItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotexplorer::V20190423::FenceEventItem
- Defined in:
- lib/v20190423/models.rb
Overview
围栏事件详情
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(productid = nil, devicename = nil, fenceid = nil, alerttype = nil, data = nil) ⇒ FenceEventItem
constructor
A new instance of FenceEventItem.
Constructor Details
#initialize(productid = nil, devicename = nil, fenceid = nil, alerttype = nil, data = nil) ⇒ FenceEventItem
Returns a new instance of FenceEventItem.
7992 7993 7994 7995 7996 7997 7998 |
# File 'lib/v20190423/models.rb', line 7992 def initialize(productid=nil, devicename=nil, fenceid=nil, alerttype=nil, data=nil) @ProductId = productid @DeviceName = devicename @FenceId = fenceid @AlertType = alerttype @Data = data end |
Instance Attribute Details
#AlertType ⇒ Object
7990 7991 7992 |
# File 'lib/v20190423/models.rb', line 7990 def AlertType @AlertType end |
#Data ⇒ Object
7990 7991 7992 |
# File 'lib/v20190423/models.rb', line 7990 def Data @Data end |
#DeviceName ⇒ Object
7990 7991 7992 |
# File 'lib/v20190423/models.rb', line 7990 def DeviceName @DeviceName end |
#FenceId ⇒ Object
7990 7991 7992 |
# File 'lib/v20190423/models.rb', line 7990 def FenceId @FenceId end |
#ProductId ⇒ Object
7990 7991 7992 |
# File 'lib/v20190423/models.rb', line 7990 def ProductId @ProductId end |
Instance Method Details
#deserialize(params) ⇒ Object
8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 |
# File 'lib/v20190423/models.rb', line 8000 def deserialize(params) @ProductId = params['ProductId'] @DeviceName = params['DeviceName'] @FenceId = params['FenceId'] @AlertType = params['AlertType'] unless params['Data'].nil? @Data = FenceAlarmPoint.new @Data.deserialize(params['Data']) end end |