dxFeed .Net API  5.8.0
dxFeed .Net API library intended to provide market data access for DX clients
Static Public Member Functions
com.dxfeed.api.util.EventTypeUtil Class Reference

Class provides operations with EventType. More...

Static Public Member Functions

static int GetEventId (EventType eventType)
 Convert event type to event id, accepting by C API. Warning: eventType must contain only one event flag, otherwise exception will be raised. More...
 
static EventType GetEventsType (params Type[] types)
 Gets enum values of events type by generic class. More...
 

Detailed Description

Class provides operations with EventType.

Member Function Documentation

◆ GetEventId()

static int com.dxfeed.api.util.EventTypeUtil.GetEventId ( EventType  eventType)
inlinestatic

Convert event type to event id, accepting by C API. Warning: eventType must contain only one event flag, otherwise exception will be raised.

Parameters
eventTypeType of event to convert.
Exceptions
InvalidOperationExceptionEvent type is empty or contains several flags.
Returns
Event id, accepting by C API.

◆ GetEventsType()

static EventType com.dxfeed.api.util.EventTypeUtil.GetEventsType ( params Type []  types)
inlinestatic

Gets enum values of events type by generic class.

Parameters
typesThe list of generic class represents events.
Returns
Enum values of events type by generic class.
Exceptions
ArgumentExceptionIf types element is not event class.

The documentation for this class was generated from the following file: