Table of Contents

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

string

DateOfBirth

Gets a DateTime specifying the date of birth of the player associated with the current instance

[DataMember]
DateTime? DateOfBirth { get; }

Property Value

DateTime?

FullName

Gets the full name of the player

[DataMember]
string FullName { get; }

Property Value

string

Gender

Gets the gender

[DataMember]
string Gender { get; }

Property Value

string

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

IReadOnlyDictionary<CultureInfo, string>

Nickname

Gets the nickname of the player

[DataMember]
string Nickname { get; }

Property Value

string

Type

Gets a value describing the type(e.g. forward, defense, ...) of the player represented by current instance

[DataMember]
string Type { get; }

Property Value

string

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

culture CultureInfo

A 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