Table of Contents

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 Device

The access point device that triggered the event.

device Device

The device that triggered the event.

baseDevice Device

The base device if the triggering device is an external module.

asset Device

The 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

Device

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

Device

The device that triggered the event.

public Device Device { get; }

Property Value

Device