Class CalculationImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.custombetentities.CalculationImpl
- All Implemented Interfaces:
Calculation
Implements methods used to provide a probability calculation
-
Constructor Summary
ConstructorsConstructorDescriptionCalculationImpl(com.sportradar.uf.custombet.datamodel.CapiCalculationResponse calculation) -
Method Summary
Modifier and TypeMethodDescriptionReturns list of available selectionsReturns the date when API response was generateddoublegetOdds()Gets the oddsdoubleGets the probabilityReturns the value if harmonization method was applied
-
Constructor Details
-
CalculationImpl
public CalculationImpl(com.sportradar.uf.custombet.datamodel.CapiCalculationResponse calculation)
-
-
Method Details
-
getOdds
public double getOdds()Gets the odds- Specified by:
getOddsin interfaceCalculation- Returns:
- the odds
-
getProbability
public double getProbability()Gets the probability- Specified by:
getProbabilityin interfaceCalculation- Returns:
- the probability
-
getAvailableSelections
Returns list of available selections- Specified by:
getAvailableSelectionsin interfaceCalculation- Returns:
- list of available selections
-
getGeneratedAt
Returns the date when API response was generated- Specified by:
getGeneratedAtin interfaceCalculation- Returns:
- the date when API response was generated
-
isHarmonization
Description copied from interface:CalculationReturns the value if harmonization method was applied- Specified by:
isHarmonizationin interfaceCalculation- Returns:
- the value if harmonization method was applied
-