Class EventPlayerImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.PlayerImpl
com.sportradar.unifiedodds.sdk.internal.impl.entities.EventPlayerImpl
- All Implemented Interfaces:
EventPlayer,Player
Represents a player or driver in a sport event
-
Field Summary
Fields inherited from class com.sportradar.unifiedodds.sdk.internal.impl.entities.PlayerImpl
names -
Method Summary
Methods inherited from class com.sportradar.unifiedodds.sdk.internal.impl.entities.PlayerImpl
getId, getName, getNames
-
Method Details
-
toString
- Overrides:
toStringin classPlayerImpl- Returns:
- - a
Stringdescribing the currentPlayerinstance
-
getBench
Description copied from interface:EventPlayerReturns 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:
getBenchin interfaceEventPlayer- Returns:
- - the bench value
-