ModelFactoryGenerateDeviceMessage Method
Generates a new
DeviceMessageDto for a device, usually created when the device receiver receives a message.
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static DeviceMessageDto GenerateDeviceMessage(
DeviceDto device,
Guid lifeCycleId,
DeviceRequestType request,
EventSeverityType severity,
DateTimeOffset when
)
- device DeviceDto
- Device that send the message
- lifeCycleId Guid
- The Life-Cycle ID of the current device receiver instance.
- request DeviceRequestType
- Device request (or alarm, or handshake, or positioning)
- severity EventSeverityType
- Severity of the event (relevant for alarms)
- when DateTimeOffset
- When the message was received by the device receiver.
This parameter is type DateTime without offset, as the device receiver is based on Utc
DeviceMessageDtoGenerated message