public property TradeDeskEventAut.Kind

Brief

Kind of the event.

Declaration
Visual Basic
Kind As Integer
IDL
[propget] HRESULT Kind( [out, retval] int* retVal)

Details

To check what kind of pending event you received you can do simple comparison between the field "Kind" and some of the constants of the same object.

if (event1.Kind == event1.KIND_ADD)
{
// Handle event as ADD event.
}
else if (event1.Kind == event1.KIND_CHANGE)
{
// Handle event as CHANGE event.
}
else if (event1.Kind == event1.KIND_REMOVE)
{
// Handle event as REMOVE event.
}

Constants for comparison:

KIND_ADD

A row is added into the table.
When this event is fired, the properties TradDeskEventAut.Table, TradDeskEventAut.TableType, TradDeskEventAut.RowID and TradDeskEventAut.ExtInfo are filled.

KIND_CHANGE

A row is changed.
When this event is fired, the properties TradDeskEventAut.Table, TradDeskEventAut.TableType, TradDeskEventAut.RowID and TradDeskEventAut.ExtInfo are filled.

KIND_REMOVE

A row is about to be removed from the table.
When this event is fired, the properties TradDeskEventAut.Table, TradDeskEventAut.TableType, TradDeskEventAut.RowID and TradDeskEventAut.ExtInfo are filled.

KIND_SESSIONSTATUSCHANGE

The session status is changed.
When this event is fired, the property TradDeskEventAut.ExtInfo is filled with the status of the session.

KIND_REQUESTCOMPLETED

Request sent by a traiding method completed.
When this event is fired, the TradDeskEventAut.RequestID property is filled.

KIND_REQUESTFAILED

Request sent by a trading method failed.
When this event is fired, the TradDeskEventAut.RequestID and TradDeskEventAut.ExtInfo properties are filled with the RequestID and error message correspondingly.

KIND_BATCHREQUESTCOMPLETED

Request belonging to a batch completed.
When this event is fired, the properties TradDeskEventAut.BatchID and TradDeskEventAut.RequestID are filled.

KIND_BATCHREQUESTFAILED

Request belonging to a batch failed.
When this event is fired, the properties TradDeskEventAut.BatchID, TradDeskEventAut.RequestID and TradDeskEventAut.ExtInfo are filled with the BatchID, RequestID and error message correspondingly.

KIND_BATCHCOMPLETED

Batch completed.
When this event is fired, the TradDeskEventAut.BatchID property is filled.

KIND_TABLESTATUSCHANGED

Table status has changed.
When this event is fired, the properties TradDeskEventAut.Table, TradDeskEventAut.TableType and TradDeskEventAut.ExtInfo are filled.

KIND_SESSIONSLISTCOMPLETED

Request for retrieving trading sessions completed.
When this event is fired, the TradDeskEventAut.Result property is filled with available trading sessions.

KIND_SESSIONSLISTFAILED

Request for retrieving trading sessions failed.
When this event is fired, the TradDeskEventAut.ExtInfo property is filled with an error message.

KIND_PRICEHISTORYCOMPLETED

Request for getting historical prices completed.
When this event is fired, the properties TradDeskEventAut.RequestID and TradDeskEventAut.Result are filled with RequestID and collection of historical prices correspondingly.

KIND_PRICEHISTORYFAILED

Request for getting historical prices failed.
When this event is fired, the properties TradDeskEventAut.RequestID and TradDeskEventAut.ExtInfo are filled with RequestID and error message correspondingly.

KIND_PRICESESSIONSTATUSCHANGE

The status of the connection with the price server is changed.
When this event is fired, the property TradDeskEventAut.ExtInfo is filled with the connection status.

The Kind property is defined in the TradeDeskEventAut class.

back