Interface OutcomeSettlement
- All Superinterfaces:
Outcome
Describes how to handle a bet on a particular outcome for a particular market
-
Method Summary
Modifier and TypeMethodDescriptiondoubleDead-heat Factor (A dead-heat factor may be returned for markets where a bet has be placed on a particular team/player to place and this particular player has placed but the place is shared with multiple players, reducing the payout)default DoubleReturns the dead-heat factor for the place part of an each-way betdefault DoubleReturns the each-way factor (fraction of win odds used to settle the place part)default EachWayResultReturns whether the each-way outcome is settled as a win or a placeReturns an indication of the outcome result statedoubleUnder certain circumstances the whole bet is refunded or half the bet is refunded
-
Method Details
-
getVoidFactor
double getVoidFactor()Under certain circumstances the whole bet is refunded or half the bet is refunded- Returns:
- 1 if the whole bet is refunded (regardless of win or loss), 0.5 if half the bet is refunded (the other half is payed out if it is a win otherwise lost), 0 no refund
-
getDeadHeatFactor
double getDeadHeatFactor()Dead-heat Factor (A dead-heat factor may be returned for markets where a bet has be placed on a particular team/player to place and this particular player has placed but the place is shared with multiple players, reducing the payout)- Returns:
- deadheat factor or 1 if none.
-
getOutcomeResult
OutcomeResult getOutcomeResult()Returns an indication of the outcome result state- Returns:
- an indication of the outcome result state
-
getEachWayResult
Returns whether the each-way outcome is settled as a win or a place- Returns:
- the each-way result, or null if not present
-
getEachWayFactor
Returns the each-way factor (fraction of win odds used to settle the place part)- Returns:
- the each-way factor, or null if not present
-
getDeadHeatFactorPlace
Returns the dead-heat factor for the place part of an each-way bet- Returns:
- the dead-heat factor for place, or null if not present
-