Caplin Trader 5.1.0

Class: module:ct-watchlist/testing/WatchlistStubEvents

module:ct-watchlist/testing/WatchlistStubEvents()

Constructor

new module:ct-watchlist/testing/WatchlistStubEvents()

Events

ADD_REQUESTED

Triggered by the stub to indicate that a subject add request has been received.

Parameters:
Name Type Description
request module:ct-services/testing/RequestStub

The stubbed request. Its target is a map containing a list of subjects to be added and an index for the first subject to be added to.

PROPERTY_CHANGE_REQUESTED

Triggered by the stub to indicate that a property change request has been received.

Parameters:
Name Type Description
request module:ct-services/testing/RequestStub

The stubbed request. Its target is a map containing the name of the property to change, and the value that the property should be changed to.

REMOVE_REQUESTED

Triggered by the stub to indicate that a subject removal request has been received.

Parameters:
Name Type Description
request module:ct-services/testing/RequestStub

The stubbed request. Its target is a map containing the list of subjects to be removed.