Airship.Net
AirshipDotNet.Events.AirshipEvent Class Reference

Base class for all Airship events. More...

Inheritance diagram for AirshipDotNet.Events.AirshipEvent:

Public Member Functions

 AirshipEvent (AirshipEventType eventType, object? data=null)
 Initializes a new instance of the AirshipEvent class.
virtual EventArgs ToEventArgs ()
 Converts the event data to EventArgs.

Properties

AirshipEventType EventType [get]
 Gets the event type.
DateTime Timestamp [get]
 Gets the timestamp when the event was created.
object? Data [get]
 Gets the event data.

Detailed Description

Base class for all Airship events.

Constructor & Destructor Documentation

◆ AirshipEvent()

AirshipDotNet.Events.AirshipEvent.AirshipEvent ( AirshipEventType eventType,
object? data = null )
inline

Initializes a new instance of the AirshipEvent class.

Parameters
eventTypeThe type of the event.
dataThe event data.

Member Function Documentation

◆ ToEventArgs()

virtual EventArgs AirshipDotNet.Events.AirshipEvent.ToEventArgs ( )
inlinevirtual

Converts the event data to EventArgs.

Returns
The EventArgs representation of the event data.

Reimplemented in AirshipDotNet.Events.AirshipEvent< T >.

Property Documentation

◆ Data

object? AirshipDotNet.Events.AirshipEvent.Data
get

Gets the event data.

◆ EventType

AirshipEventType AirshipDotNet.Events.AirshipEvent.EventType
get

Gets the event type.

◆ Timestamp

DateTime AirshipDotNet.Events.AirshipEvent.Timestamp
get

Gets the timestamp when the event was created.