Class Event
- Namespace
- SenseAnywhere.Sdk.Events
- Assembly
- SenseAnywhere.Sdk.dll
Represents an event that was triggered by a device.
public sealed class Event
- Inheritance
-
Event
- Inherited Members
Constructors
Event(string, EventType, DateTime, DateTime, Measurement?, Measurement?, SensorState?)
Initializes a new instance of the Event class.
public Event(string eventId, EventType type, DateTime eventDate, DateTime processDate, Measurement? measurement = null, Measurement? previousFieldStrength = null, SensorState? sensorState = null)
Parameters
eventId
stringThe unique identifier of the event.
type
EventTypeThe type of event.
eventDate
DateTimeThe date and time of the event.
processDate
DateTimeThe date and time the event was processed by the SenseAnywhere Device Backend.
measurement
MeasurementThe measurement(s) associated with the event.
previousFieldStrength
MeasurementThe field strength of the previous device communication.
sensorState
SensorState?The state of the sensor when the event was triggered.
Properties
EventDate
The UTC date and time of the event.
public DateTime EventDate { get; }
Property Value
EventId
Gets the unique identifier of the event.
public string EventId { get; }
Property Value
Measurement
If the event is of a measurement type, gets the measurement associated with the event.
public Measurement? Measurement { get; }
Property Value
PreviousFieldStrength
Gets the field strength of the previous message sent by the device, if applicable.
public Measurement? PreviousFieldStrength { get; }
Property Value
ProcessDate
Gets the UTC date and time when the event was processed by the SenseAnywhere Device Backend.
public DateTime ProcessDate { get; }
Property Value
SensorState
Gets the state of the sensor that triggered the event.
public SensorState? SensorState { get; }
Property Value
Type
Gets the type of the event.
public EventType Type { get; }