java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.oddsentities.markets.OutcomeProbabilitiesImpl
com.sportradar.unifiedodds.sdk.internal.impl.oddsentities.markets.PlayerOutcomeOddsImpl
All Implemented Interfaces:
Outcome, OutcomeOdds, OutcomeProbabilities, PlayerOutcomeOdds

public class PlayerOutcomeOddsImpl extends OutcomeProbabilitiesImpl implements PlayerOutcomeOdds
Describes a player outcome. A player outcome is an outcome that is related to a player profile.
  • Method Details

    • getHomeOrAwayTeam

      public HomeAway getHomeOrAwayTeam()
      Indicates if the associated team is home or away
      Specified by:
      getHomeOrAwayTeam in interface PlayerOutcomeOdds
      Returns:
      an indication if the associated team is home or away
    • getTeam

      public TeamCompetitor getTeam()
      Returns the associated team competitor
      Specified by:
      getTeam in interface PlayerOutcomeOdds
      Returns:
      the associated team competitor
    • isPlayerOutcome

      public boolean isPlayerOutcome()
      Indicates if the outcome is PlayerOutcomeOdds instance
      Specified by:
      isPlayerOutcome in interface OutcomeOdds
      Returns:
      true if the current outcome is a player outcome, otherwise false
    • getOdds

      public Double getOdds(OddsDisplayType oddsDisplayType)
      Description copied from interface: OutcomeOdds
      Gets the odds in specified format
      Specified by:
      getOdds in interface OutcomeOdds
      Parameters:
      oddsDisplayType - display type of the odds (default: @link OddsDisplayType.Decimal)
      Returns:
      the odds for this outcome in this market in wanted format
    • getId

      public String getId()
      Returns the outcome id
      Specified by:
      getId in interface Outcome
      Returns:
      - the outcome id
    • getName

      public String getName()
      Returns the outcome name
      Specified by:
      getName in interface Outcome
      Returns:
      - the outcome name
    • getName

      public String getName(Locale locale)
      Description copied from interface: Outcome
      Returns the outcome name translated in the provided locale
      Specified by:
      getName in interface Outcome
      Parameters:
      locale - - the locale in which the name should be translated
      Returns:
      - the outcome name translated in the provided Locale
    • getOutcomeDefinition

      public OutcomeDefinition getOutcomeDefinition()
      Returns the description of this outcome
      Specified by:
      getOutcomeDefinition in interface Outcome
      Returns:
      - the description of this outcome
    • getNames

      public Map<Locale,String> getNames(List<Locale> locales)
      Specified by:
      getNames in interface Outcome
      Parameters:
      locales - the list of Locale in which the name should be returned
      Returns:
      - the names of the market translated in the specified Locale (specifier placeholders are replaced with actual values)