java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.custombetentities.CalculationImpl
All Implemented Interfaces:
Calculation

public class CalculationImpl extends Object implements Calculation
Implements methods used to provide a probability calculation
  • Constructor Details

    • CalculationImpl

      public CalculationImpl(com.sportradar.uf.custombet.datamodel.CapiCalculationResponse calculation)
  • Method Details

    • getOdds

      public double getOdds()
      Gets the odds
      Specified by:
      getOdds in interface Calculation
      Returns:
      the odds
    • getProbability

      public double getProbability()
      Gets the probability
      Specified by:
      getProbability in interface Calculation
      Returns:
      the probability
    • getAvailableSelections

      public List<AvailableSelections> getAvailableSelections()
      Returns list of available selections
      Specified by:
      getAvailableSelections in interface Calculation
      Returns:
      list of available selections
    • getGeneratedAt

      public Date getGeneratedAt()
      Returns the date when API response was generated
      Specified by:
      getGeneratedAt in interface Calculation
      Returns:
      the date when API response was generated
    • isHarmonization

      public Boolean isHarmonization()
      Description copied from interface: Calculation
      Returns the value if harmonization method was applied
      Specified by:
      isHarmonization in interface Calculation
      Returns:
      the value if harmonization method was applied