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

public class EventPlayerImpl extends PlayerImpl implements EventPlayer
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
    • getBench

      public String getBench()
      Description copied from interface: EventPlayer
      Returns the bench value The bench value - in case of yellow or red card event, it is relevant to know if the player who is getting the card is sitting on the bench at that exact moment. The attribute is equal to 1 if the player who gets the card is sitting on the bench. In case the player who gets the card is on the field, then the attribute is not added at all.
      Specified by:
      getBench in interface EventPlayer
      Returns:
      - the bench value