Class provides operations with EventType.
More...
|
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...
|
|
Class provides operations with EventType.
◆ 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
-
eventType | Type of event to convert. |
- Exceptions
-
InvalidOperationException | Event 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
-
types | The list of generic class represents events. |
- Returns
- Enum values of events type by generic class.
- Exceptions
-
ArgumentException | If types element is not event class. |
The documentation for this class was generated from the following file: