Class: TencentCloud::Iotcloud::V20180614::PublishAsDeviceRequest

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

Overview

PublishAsDevice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productid = nil, devicename = nil, port = nil, payload = nil) ⇒ PublishAsDeviceRequest

Returns a new instance of PublishAsDeviceRequest.



3737
3738
3739
3740
3741
3742
# File 'lib/v20180614/models.rb', line 3737

def initialize(productid=nil, devicename=nil, port=nil, payload=nil)
  @ProductId = productid
  @DeviceName = devicename
  @Port = port
  @Payload = payload
end

Instance Attribute Details

#DeviceNameObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • Port:

    LoRa 设备端口

  • Payload:

    消息内容



3735
3736
3737
# File 'lib/v20180614/models.rb', line 3735

def DeviceName
  @DeviceName
end

#PayloadObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • Port:

    LoRa 设备端口

  • Payload:

    消息内容



3735
3736
3737
# File 'lib/v20180614/models.rb', line 3735

def Payload
  @Payload
end

#PortObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • Port:

    LoRa 设备端口

  • Payload:

    消息内容



3735
3736
3737
# File 'lib/v20180614/models.rb', line 3735

def Port
  @Port
end

#ProductIdObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • Port:

    LoRa 设备端口

  • Payload:

    消息内容



3735
3736
3737
# File 'lib/v20180614/models.rb', line 3735

def ProductId
  @ProductId
end

Instance Method Details

#deserialize(params) ⇒ Object



3744
3745
3746
3747
3748
3749
# File 'lib/v20180614/models.rb', line 3744

def deserialize(params)
  @ProductId = params['ProductId']
  @DeviceName = params['DeviceName']
  @Port = params['Port']
  @Payload = params['Payload']
end