Class DeviceMessageSender
- Namespace
- SenseAnywhere.Sdk.Messages.Headers
- Assembly
- SenseAnywhere.Sdk.dll
Represents a source of a device message, including the device that triggered the event, the base device if the triggering device is an external module, and the asset if the triggering device is an asset.
public sealed class DeviceMessageSender : AccessPointMessageSender
- Inheritance
-
DeviceMessageSender
- Inherited Members
Constructors
DeviceMessageSender(Device, Device, Device?, Device?)
Initializes a new instance of the DeviceMessageSender class.
public DeviceMessageSender(Device accessPoint, Device device, Device? baseDevice, Device? asset)
Parameters
accessPoint
DeviceThe access point device that triggered the event.
device
DeviceThe device that triggered the event.
baseDevice
DeviceThe base device if the triggering device is an external module.
asset
DeviceThe asset if the triggering device is an asset.
Properties
Asset
If the device that triggered the event is coupled to an asset, this property contains the asset that the device is coupled to.
public Device? Asset { get; }
Property Value
BaseDevice
If the device that triggered the event is an external module, this property contains the device that the module is attached to.
public Device? BaseDevice { get; }
Property Value
Device
The device that triggered the event.
public Device Device { get; }