public interface UofListener
Modifier and Type | Method and Description |
---|---|
void |
onBetCancel(UofSession sender,
BetCancel<T> betCancel)
If the markets were cancelled you may receive a
BetCancel describing which markets were
cancelled |
void |
onBetSettlement(UofSession sender,
BetSettlement<T> clearBets)
The onBetSettlement callback is received whenever a BetSettlement message is received.
|
void |
onBetStop(UofSession sender,
BetStop<T> betStop)
Send to rapidly suspend a set of markets (often all)
|
void |
onFixtureChange(UofSession sender,
FixtureChange<T> fixtureChange)
If there are important fixture updates you will receive fixturechange message.
|
void |
onOddsChange(UofSession sender,
OddsChange<T> oddsChanges)
Any kind of odds update, or betstop signal results in an OddsChanges Message.
|
void |
onRollbackBetCancel(UofSession sender,
RollbackBetCancel<T> rbBetCancel)
If the bet cancellations were send in error you may receive a
RollbackBetCancel describing the
erroneous cancellations |
void |
onRollbackBetSettlement(UofSession 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 |
onUnparsableMessage(UofSession sender,
UnparsableMessage unparsableMessage)
This handler is called when the SDK detects that it has problems parsing/dispatching a message.
|
void |
onUserUnhandledException(UofSession sender,
Exception exception)
This handler is called when the SDK detects problems while
UofListener process a message. |
void onOddsChange(UofSession sender, OddsChange<T> oddsChanges)
sender
- the sessionoddsChanges
- the odds changes messagevoid onBetStop(UofSession sender, BetStop<T> betStop)
sender
- the sessionbetStop
- the betstop messagevoid onBetSettlement(UofSession sender, BetSettlement<T> clearBets)
sender
- the sessionclearBets
- the BetSettlement messagevoid onRollbackBetSettlement(UofSession sender, RollbackBetSettlement<T> rollbackBetSettlement)
sender
- the sessionrollbackBetSettlement
- the rollbackBetSettlement message referring to a previous
BetSettlementvoid onBetCancel(UofSession sender, BetCancel<T> betCancel)
BetCancel
describing which markets were
cancelledsender
- the sessionbetCancel
- A BetCancel
instance
specifying which markets were cancelledvoid onRollbackBetCancel(UofSession sender, RollbackBetCancel<T> rbBetCancel)
RollbackBetCancel
describing the
erroneous cancellationssender
- the sessionrbBetCancel
- A RollbackBetCancel
specifying erroneous cancellationsvoid onFixtureChange(UofSession sender, FixtureChange<T> fixtureChange)
sender
- the sessionfixtureChange
- the SDKFixtureChange message - describing what sport event and what type
of fixture changevoid onUnparsableMessage(UofSession sender, UnparsableMessage unparsableMessage)
sender
- the sessionunparsableMessage
- A UnparsableMessage
instance describing the message that had issuesvoid onUserUnhandledException(UofSession sender, Exception exception)
UofListener
process a message.
The handler can choose to handle exception or just ignore it.
The SDK itself will always log exception.sender
- the sessionexception
- A Exception
instance containing unhandled exceptionCopyright © 2016–2025. All rights reserved.