java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.PlayerImpl
com.sportradar.unifiedodds.sdk.internal.impl.entities.GoalScorerImpl
All Implemented Interfaces:
GoalScorer, Player

public class GoalScorerImpl extends PlayerImpl implements GoalScorer
Represents a player or driver in a sport event
  • Method Details

    • toString

      public String toString()
      Returns a String describing the current Player instance
      Overrides:
      toString in class PlayerImpl
      Returns:
      - a String describing the current Player instance
    • getMethod

      public String getMethod()
      Description copied from interface: GoalScorer
      Returns the method value The attribute can assume values such as 'penalty' and 'own goal'. In case the attribute is not inserted, then the goal is not own goal neither penalty.
      Specified by:
      getMethod in interface GoalScorer
      Returns:
      - the method value