Interface BetCancel<T extends SportEvent>
- All Superinterfaces:
EventMessage<T>,MarketMessage<T>,Message
Sent to describe that all bets on the particular market (line) for the particular competition
should be cancelled and refunded in full. If a time range is specified it only relates to bets
for that market within that time period. This could for example happen if a goal is first
incorrectly reported and then readjusted. During the period from the incorrect report to the
adjustment all bets on related markets would be canceled in retrospect.
Cancel bet is sent when a particular bets made on a particular market needs to be cancelled and
refunded due to some kind of error. This is different than a bet-settlement / refund in that this
message is sent due to some kind of error.
-
Method Summary
Modifier and TypeMethodDescriptionIf the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval finishedReturns a list of markets that are affected by the associated messageIf the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval startedIf the market was cancelled because of a migration from a different sport event, it gets aUrnspecifying the sport event from which the market has migrated.Methods inherited from interface com.sportradar.unifiedodds.sdk.oddsentities.EventMessage
getEvent, getRawMessage, getRequestIdMethods inherited from interface com.sportradar.unifiedodds.sdk.oddsentities.Message
getProducer, getTimestamps
-
Method Details
-
getStartTime
Date getStartTime()If the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval started- Returns:
- a
Dateindicating the start time of the Bet Cancel interval
-
getEndTime
Date getEndTime()If the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval finished- Returns:
- a
Dateindicating the end time of the Bet Cancel interval
-
getSupercededBy
String getSupercededBy()If the market was cancelled because of a migration from a different sport event, it gets aUrnspecifying the sport event from which the market has migrated.- Returns:
- the
Urnidentifier of the superceded event
-
getMarkets
List<MarketCancel> getMarkets()Description copied from interface:MarketMessageReturns a list of markets that are affected by the associated message- Specified by:
getMarketsin interfaceMarketMessage<T extends SportEvent>- Returns:
- the list of affected markets
-