DeviceMessageDto Class

Interface for a message send by a device, after it has been parsed.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public sealed class DeviceMessageDto : IIdLabel, 
	IHasCompany, IHasDevice
Inheritance
Object    DeviceMessageDto
Implements
IHasCompany, IHasDevice, IIdLabel

Constructors

DeviceMessageDto Constructor is only usable in the Common assembly; to instantiate new objects, use ModelFactory methods.

Properties

BatteryLevel (optional) battery level of the device at time of sending
BufferHex (optional) base64-encoded buffer as received from the device
BufferOrdinal (optional) coordinate in the buffer where the actual device message starts
CompanyId Represents the CompanyDto owning this object.
DeviceId Device reference.
DeviceRequest Device call request; can be a handshake or position transmission, but also an alarm.
DeviceTemperature The temperature of the device (in celcius), if the device has a temperature sensor and reports it.
EventDateTime Moment the message was received by the device receiver.
GpsOn Whether the device had turned on its GPS feature.
GsmSignalStrength GSM signal strength (0-31)
Hdop The Horizontal Dilution of Precision (HDOP) value. The higher the value, the less accurate the GPS signal.
Id The unique ID representing the object. Empty is not valid! This ID is used when other objects are referring to this object, and as the main ID in the Azure Cosmos database.
IsCharging Whether the device is currently charging.
IsConnectedToPowerOutlet Whether the device is currently connected to a power outlet.
Label The label representing the object to the user. Empty or are not valid values for this property!
LifeSpanId The lifespan the device is currently in, between it starting up and eventually shutting down. (manual, loss of power, etc.)
Location Location of the device (with heading)
PedometerStepCount Amount of steps registered by the pedometer. (If the device has a pedometer and reports it)
ReceivedTime Moment the device sent the message internally
SatelliteCount The number of satellites the device believes it can see. (If the device has a GPS module and reports it)
Severity Severity of the event

Extension Methods

GenerateFourEyesRequestedMessage Generates a toast message for a four-eyes request, letting the user know it had been submitted properly.
(Defined by FourEyesExtensions)
GenerateToastMessageForAction Generates a toast message for the specified action.
(Defined by WebExtensions)
GenerateToastMessageForFourEyesCancelled Generates Toast message for when a four-eyes request has been denied
(Defined by WebExtensions)
GenerateToastMessageForItemCreation Generates Toast message for when an item has been successfully created.
(Defined by WebExtensions)
GenerateToastMessageForItemDeletion Generates Toast message for when an item has been successfully deleted.
(Defined by WebExtensions)
GenerateToastMessageForItemLicenseActivated Generates Toast message for when an item has been successfully activated.
(Defined by WebExtensions)
GenerateToastMessageForItemLicenseExpired Generates Toast message for when an item's license has been successfully expired.
(Defined by WebExtensions)
GenerateToastMessageForItemLock Generates Toast message for when an item has been successfully locked.
(Defined by WebExtensions)
GenerateToastMessageForItemRequestConfirmed Generates Toast message for when an item request has been successfully confirmed.
(Defined by WebExtensions)
GenerateToastMessageForItemRevertDelete Generates Toast message for when an item has been successfully reverted deletion.
(Defined by WebExtensions)
GenerateToastMessageForItemUnlock Generates Toast message for when an item has been successfully unlocked.
(Defined by WebExtensions)
GenerateToastMessageForItemUpdated Generates Toast message for when an item has been successfully updated.
(Defined by WebExtensions)
IdString renders ID as a string for frontend brevity.
(Defined by ModelGenericExtensions)
IsDeviceMessageValid Checks if a parsed Gps Message has been properly composed
(Defined by ModelValidatorsExtensions)
IsIdAndLabelValid Checks whether the Id and Label have been properly entered.
(Defined by ModelValidatorsExtensions)
IsLabelValid Checks whether the Label field has a valid value; not , not whitespace (or beginning or ending with whitespace) and not only comprised of special characters.
(Defined by ModelValidatorsExtensions)
TrimLabel Trim the label of IIdLabel object.
(Defined by ModelGenericModifiers)

See Also