Class CustomBetManagerImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.CustomBetManagerImpl
- All Implemented Interfaces:
CustomBetManager
The basic implementation of the
CustomBetManager-
Method Summary
Modifier and TypeMethodDescriptionReturns anCalculationinstance providing the probability for the specified selections using aCalculateRequestBuilderthat supports both AND and OR groups.calculateProbability(List<Selection> selections) Returns anCalculationinstance providing the probability for the specified selectionsReturns anCalculationFilterinstance providing the probability for the specified selections (filtered) using aCalculateRequestBuilderthat supports both AND and OR groups.calculateProbabilityFilter(List<Selection> selections) Returns anCalculationFilterinstance providing the probability for the specified selections (filtered)getAvailableSelections(Urn eventId) Returns anAvailableSelectionsinstance providing the available selections for the event associated with the providedUrnidentifierReturns aCalculateRequestBuilderinstance used to build requests with AND and OR selections.Returns anCustomBetSelectionBuilderinstance used to build selectionsgetPrebuiltBets(PrebuiltBetsRequest request) Returns prebuilt bets for the eventReturns aPrebuiltBetsRequestBuilderinstance used to build prebuilt bets requests.
-
Method Details
-
getCalculateRequestBuilder
Description copied from interface:CustomBetManagerReturns aCalculateRequestBuilderinstance used to build requests with AND and OR selections.- Specified by:
getCalculateRequestBuilderin interfaceCustomBetManager- Returns:
- a
CalculateRequestBuilderinstance
-
getCustomBetSelectionBuilder
Description copied from interface:CustomBetManagerReturns anCustomBetSelectionBuilderinstance used to build selections- Specified by:
getCustomBetSelectionBuilderin interfaceCustomBetManager- Returns:
- an
CustomBetSelectionBuilderinstance used to build selections
-
getPrebuiltBetsRequestBuilder
Description copied from interface:CustomBetManagerReturns aPrebuiltBetsRequestBuilderinstance used to build prebuilt bets requests.- Specified by:
getPrebuiltBetsRequestBuilderin interfaceCustomBetManager- Returns:
- a
PrebuiltBetsRequestBuilderinstance
-
getAvailableSelections
Description copied from interface:CustomBetManagerReturns anAvailableSelectionsinstance providing the available selections for the event associated with the providedUrnidentifier- Specified by:
getAvailableSelectionsin interfaceCustomBetManager- Parameters:
eventId- theUrnidentifier of the event for which the available selections should be returned- Returns:
- an
AvailableSelectionsproviding the available selections of the associated event - Throws:
CommunicationException
-
calculateProbability
public Calculation calculateProbability(CalculateRequestBuilder request) throws CommunicationException Description copied from interface:CustomBetManagerReturns anCalculationinstance providing the probability for the specified selections using aCalculateRequestBuilderthat supports both AND and OR groups.- Specified by:
calculateProbabilityin interfaceCustomBetManager- Parameters:
request- theCalculateRequestBuildercontaining AND selections and OR groups- Returns:
- an
Calculationproviding the probability for the specified selections - Throws:
CommunicationException
-
calculateProbability
Description copied from interface:CustomBetManagerReturns anCalculationinstance providing the probability for the specified selections- Specified by:
calculateProbabilityin interfaceCustomBetManager- Parameters:
selections- theListcontaining selections for which the probability should be calculated- Returns:
- an
Calculationproviding the probability for the specified selections - Throws:
CommunicationException
-
calculateProbabilityFilter
public CalculationFilter calculateProbabilityFilter(CalculateRequestBuilder request) throws CommunicationException Description copied from interface:CustomBetManagerReturns anCalculationFilterinstance providing the probability for the specified selections (filtered) using aCalculateRequestBuilderthat supports both AND and OR groups.- Specified by:
calculateProbabilityFilterin interfaceCustomBetManager- Parameters:
request- theCalculateRequestBuildercontaining AND selections and OR groups- Returns:
- an
CalculationFilterproviding the probability for the specified selections - Throws:
CommunicationException
-
calculateProbabilityFilter
public CalculationFilter calculateProbabilityFilter(List<Selection> selections) throws CommunicationException Description copied from interface:CustomBetManagerReturns anCalculationFilterinstance providing the probability for the specified selections (filtered)- Specified by:
calculateProbabilityFilterin interfaceCustomBetManager- Parameters:
selections- theListcontaining selections for which the probability should be calculated- Returns:
- an
CalculationFilterproviding the probability for the specified selections - Throws:
CommunicationException
-
getPrebuiltBets
Description copied from interface:CustomBetManagerReturns prebuilt bets for the event- Specified by:
getPrebuiltBetsin interfaceCustomBetManager- Parameters:
request- thePrebuiltBetsRequestcontaining request parameters- Returns:
- prebuilt bets for the event
- Throws:
CommunicationException
-