Class PlayerProfileImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.entities.PlayerProfileImpl
- All Implemented Interfaces:
Player,PlayerProfile
- Direct Known Subclasses:
CompetitorPlayerImpl
Represents player's profile information
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerProfileImpl(Urn playerId, ProfileCache profileCache, List<Urn> possibleAssociatedCompetitorIds, List<Locale> locales, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a new instance ofPlayerProfileImpl -
Method Summary
Modifier and TypeMethodDescriptionReturns aStringrepresentation of a country codeReturns theDatespecifying the date of birth of the player associated with the current instancegetFullName(Locale locale) Returns the player full name in the specified languageReturns gender of the playerReturns the height in centimeters of the player represented by the current instance or a null reference if height is not knowngetId()Returns the uniqueUrnidentifier representing the currentPlayerProfileinstanceReturns the player jersey numberReturns the name of the player in the specified languagegetNames()Returns an unmodifiable map of available translated namesReturns an unmodifiableMapcontaining player's nationality in different languagesgetNationality(Locale locale) Returns the nationality of the player in the requestedLocaleReturns the player nicknamegetType()Returns the value describing the type(e.g.Returns the weight in kilograms of the player represented by the current instance or a null reference if weight is not knowntoString()Returns aStringdescribing the currentPlayerProfileinstance
-
Constructor Details
-
PlayerProfileImpl
public PlayerProfileImpl(Urn playerId, ProfileCache profileCache, List<Urn> possibleAssociatedCompetitorIds, List<Locale> locales, ExceptionHandlingStrategy exceptionHandlingStrategy) Initializes a new instance ofPlayerProfileImpl- Parameters:
playerId- the associated player identifierprofileCache- the cache used to provide the datapossibleAssociatedCompetitorIds- a list of possible associated competitor ids (used to prefetch data)locales- theLocales in which the data should be availableexceptionHandlingStrategy- the preferred exception handling strategy
-
-
Method Details
-
getId
Returns the uniqueUrnidentifier representing the currentPlayerProfileinstance- Specified by:
getIdin interfacePlayer- Returns:
- - the unique
Urnidentifier representing the currentPlayerProfileinstance
-
getNames
Returns an unmodifiable map of available translated names -
getName
Returns the name of the player in the specified language -
getFullName
Returns the player full name in the specified language- Specified by:
getFullNamein interfacePlayerProfile- Parameters:
locale- -Localespecifying the language of the returned player name- Returns:
- - The player full name in the specified language if it exists. Null otherwise.
-
getType
Returns the value describing the type(e.g. forward, defense, ...) of the player represented by current instance- Specified by:
getTypein interfacePlayerProfile- Returns:
- - the value describing the type(e.g. forward, defense, ...) of the player represented by current instance
-
getDateOfBirth
Returns theDatespecifying the date of birth of the player associated with the current instance- Specified by:
getDateOfBirthin interfacePlayerProfile- Returns:
- - the
Datespecifying the date of birth of the player associated with the current instance
-
getHeight
Returns the height in centimeters of the player represented by the current instance or a null reference if height is not known- Specified by:
getHeightin interfacePlayerProfile- Returns:
- - the height in centimeters of the player represented by the current instance or a null reference if height is not known
-
getWeight
Returns the weight in kilograms of the player represented by the current instance or a null reference if weight is not known- Specified by:
getWeightin interfacePlayerProfile- Returns:
- - the weight in kilograms of the player represented by the current instance or a null reference if weight is not known
-
getCountryCode
Returns aStringrepresentation of a country code- Specified by:
getCountryCodein interfacePlayerProfile- Returns:
- - a
Stringrepresentation of a country code
-
getNationality
Returns the nationality of the player in the requestedLocale- Specified by:
getNationalityin interfacePlayerProfile- Parameters:
locale- - theLocalein which to return the nationality- Returns:
- - the nationality of the player in the requested
Locale
-
getNationalities
Returns an unmodifiableMapcontaining player's nationality in different languages- Specified by:
getNationalitiesin interfacePlayerProfile- Returns:
- - an unmodifiable
Mapcontaining player's nationality in different languages - See Also:
-
ImmutableMap
-
getJerseyNumber
Returns the player jersey number- Specified by:
getJerseyNumberin interfacePlayerProfile- Returns:
- the jersey number if available; otherwise null
-
getNickname
Returns the player nickname- Specified by:
getNicknamein interfacePlayerProfile- Returns:
- the player nickname if available; otherwise null
-
getGender
Returns gender of the player- Specified by:
getGenderin interfacePlayerProfile- Returns:
- the gender of the player if available; otherwise null
-
toString
Returns aStringdescribing the currentPlayerProfileinstance- Overrides:
toStringin classObject- Returns:
- - a
Stringdescribing the currentPlayerProfileinstance
-