public interface OddsFeedListener
Modifier and Type | Method and Description |
---|---|
void |
onBetCancel(OddsFeedSession sender,
BetCancel<T> betCancel)
If the markets were cancelled you may receive a
BetCancel describing which markets were
cancelled |
void |
onBetSettlement(OddsFeedSession sender,
BetSettlement<T> clearBets)
The onBetSettlement callback is received whenever a BetSettlement message is received.
|
void |
onBetStop(OddsFeedSession sender,
BetStop<T> betStop)
Send to rapidly suspend a set of markets (often all)
|
void |
onFixtureChange(OddsFeedSession sender,
FixtureChange<T> fixtureChange)
If there are important fixture updates you will receive fixturechange message.
|
void |
onOddsChange(OddsFeedSession sender,
OddsChange<T> oddsChanges)
Any kind of odds update, or betstop signal results in an OddsChanges Message.
|
void |
onRollbackBetCancel(OddsFeedSession sender,
RollbackBetCancel<T> rbBetCancel)
If the bet cancellations were send in error you may receive a
RollbackBetCancel describing the
erroneous cancellations |
void |
onRollbackBetSettlement(OddsFeedSession sender,
RollbackBetSettlement<T> rollbackBetSettlement)
If a BetSettlement was generated in error, you may receive a RollbackBetsettlement and have
to try to do whatever you can to undo the BetSettlement if possible.
|
void |
onUnparseableMessage(OddsFeedSession sender,
byte[] rawMessage,
SportEvent event)
This handler is called when the SDK detects that it has problems parsing a certain message.
|
void onOddsChange(OddsFeedSession sender, OddsChange<T> oddsChanges)
sender
- the sessionoddsChanges
- the odds changes messagevoid onBetStop(OddsFeedSession sender, BetStop<T> betStop)
sender
- the sessionbetStop
- the betstop messagevoid onBetSettlement(OddsFeedSession sender, BetSettlement<T> clearBets)
sender
- the sessionclearBets
- the BetSettlement messagevoid onRollbackBetSettlement(OddsFeedSession sender, RollbackBetSettlement<T> rollbackBetSettlement)
sender
- the sessionrollbackBetSettlement
- the rollbackBetSettlement message referring to a previous
BetSettlementvoid onBetCancel(OddsFeedSession sender, BetCancel<T> betCancel)
BetCancel
describing which markets were
cancelledsender
- the sessionbetCancel
- A BetCancel
instance
specifying which markets were cancelledvoid onRollbackBetCancel(OddsFeedSession sender, RollbackBetCancel<T> rbBetCancel)
RollbackBetCancel
describing the
erroneous cancellationssender
- the sessionrbBetCancel
- A RollbackBetCancel
specifying erroneous cancellationsvoid onFixtureChange(OddsFeedSession sender, FixtureChange<T> fixtureChange)
sender
- the sessionfixtureChange
- the SDKFixtureChange message - describing what sport event and what type
of fixture changevoid onUnparseableMessage(OddsFeedSession sender, byte[] rawMessage, SportEvent event)
sender
- the sessionrawMessage
- the raw message received from Betradarevent
- if the SDK was able to extract the event this message is for it will be here
otherwise nullCopyright © 2016–2017. All rights reserved.