Interface IPlayerProfile
- Namespace
- Sportradar.OddsFeed.SDK.Entities.Rest
- Assembly
- Sportradar.OddsFeed.SDK.dll
Defines a contract implemented by classes representing a player profile
public interface IPlayerProfile : IPlayer, IEntityPrinter
- Inherited Members
Properties
CountryCode
Gets the country code
[DataMember]
string CountryCode { get; }
Property Value
DateOfBirth
Gets a DateTime specifying the date of birth of the player associated with the current instance
[DataMember]
DateTime? DateOfBirth { get; }
Property Value
FullName
Gets the full name of the player
[DataMember]
string FullName { get; }
Property Value
Gender
Gets the gender
[DataMember]
string Gender { get; }
Property Value
Height
Gets the height in centimeters of the player represented by the current instance or a null reference if height is not known
[DataMember]
int? Height { get; }
Property Value
- int?
Nationalities
Gets a IReadOnlyDictionary<TKey, TValue> containing player nationality in different languages
[DataMember]
IReadOnlyDictionary<CultureInfo, string> Nationalities { get; }
Property Value
Nickname
Gets the nickname of the player
[DataMember]
string Nickname { get; }
Property Value
Type
Gets a value describing the type(e.g. forward, defense, ...) of the player represented by current instance
[DataMember]
string Type { get; }
Property Value
Weight
Gets the weight in kilograms of the player represented by the current instance or a null reference if weight is not known
[DataMember]
int? Weight { get; }
Property Value
- int?
Methods
GetNationality(CultureInfo)
Gets the nationality of the player represented by the current instance in the language specified by culture
string GetNationality(CultureInfo culture)
Parameters
cultureCultureInfoA CultureInfo specifying the language of the returned nationality
Returns
- string
The nationality of the player represented by the current instance in the language specified by
culture