Table of Contents

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 string

The unique identifier of the event.

type EventType

The type of event.

eventDate DateTime

The date and time of the event.

processDate DateTime

The date and time the event was processed by the SenseAnywhere Device Backend.

measurement Measurement

The measurement(s) associated with the event.

previousFieldStrength Measurement

The 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

DateTime

EventId

Gets the unique identifier of the event.

public string EventId { get; }

Property Value

string

Measurement

If the event is of a measurement type, gets the measurement associated with the event.

public Measurement? Measurement { get; }

Property Value

Measurement

PreviousFieldStrength

Gets the field strength of the previous message sent by the device, if applicable.

public Measurement? PreviousFieldStrength { get; }

Property Value

Measurement

ProcessDate

Gets the UTC date and time when the event was processed by the SenseAnywhere Device Backend.

public DateTime ProcessDate { get; }

Property Value

DateTime

SensorState

Gets the state of the sensor that triggered the event.

public SensorState? SensorState { get; }

Property Value

SensorState?

Type

Gets the type of the event.

public EventType Type { get; }

Property Value

EventType