Beamable SDK
Public Member Functions | Public Attributes | List of all members
Beamable.Common.Api.Leaderboards.RankEntry Class Reference
Collaboration diagram for Beamable.Common.Api.Leaderboards.RankEntry:
Collaboration graph
[legend]

Public Member Functions

string GetStat (string name)
 Find the first stat in the stats array that matches the given name argument. More...
 
double GetDoubleStat (string name, double fallback=0)
 Find the first stat in the stats array that matches the given name argument, and parses the string value as a double. More...
 

Public Attributes

long gt
 The gamertag of the player for this entry
 
long rank
 The rank in the leaderboard for this entry
 
double score
 The score on the leaderboard for this entry
 
RankEntryStat[] stats
 A set of RankEntryStat values associated with this entry
 
RankEntryColumns columns
 This field will be removed in the future, please do not use.
 

Member Function Documentation

◆ GetDoubleStat()

double Beamable.Common.Api.Leaderboards.RankEntry.GetDoubleStat ( string  name,
double  fallback = 0 
)
inline

Find the first stat in the stats array that matches the given name argument, and parses the string value as a double.

Parameters
nameThe name of a stat
fallbackIf the stat does not exist, or the value is not a parsable double, this value will be returned.
Returns
The parsed value of the stat. If the stat was not found, or it had a non parsable value, the fallback value will be returned.

◆ GetStat()

string Beamable.Common.Api.Leaderboards.RankEntry.GetStat ( string  name)
inline

Find the first stat in the stats array that matches the given name argument.

Parameters
nameA name of a stat
Returns
The string value of the found stat, or null if the stat was not found.

The documentation for this class was generated from the following file: