Beamable SDK
|
Public Member Functions | |
UserDataCache< Dictionary< string, string > > | GetCache (string prefix) |
Get the UserDataCache<T> for the stat prefix More... | |
Promise< EmptyResponse > | SetStats (string access, Dictionary< string, string > stats) |
Set the current player's client player stats. More... | |
Promise< Dictionary< string, string > > | GetStats (string domain, string access, string type, long id) |
Get all of the stats for a given player id More... | |
UserDataCache< Dictionary< string, string > > Beamable.Common.Api.Stats.IStatsApi.GetCache | ( | string | prefix | ) |
Get the UserDataCache<T> for the stat prefix
prefix | A stat prefix is a dot separated string containing the ordered set of stat clauses. |
{domain}.{access}.{type}
Domain can be "client" or "game" Access can be "public" or "private". Type should always be "player".
Implemented in Beamable.Common.Api.Stats.AbsStatsApi.
Promise< Dictionary< string, string > > Beamable.Common.Api.Stats.IStatsApi.GetStats | ( | string | domain, |
string | access, | ||
string | type, | ||
long | id | ||
) |
Get all of the stats for a given player id
domain | "client" or "game". Should always be "client" unless you are executing this method as a privileged user or from a Microservice. |
access | "public" or "private". Should always be "public" unless you are executing this method as a privileged user or from a Microserivce. |
type | Should always be "player". |
id | The player id to get stats for |
Implemented in Beamable.Common.Api.Stats.AbsStatsApi.
Promise< EmptyResponse > Beamable.Common.Api.Stats.IStatsApi.SetStats | ( | string | access, |
Dictionary< string, string > | stats | ||
) |
Set the current player's client player stats.
access | "public" or "private". Should always be "public", unless you are executing this method as a privileged user or from a Microserivce. |
stats | A dictionary of stat keys and values to set. This will overwrite ONLY the stats that are present in the given dictionary. |
Implemented in Beamable.Common.Api.Stats.AbsStatsApi.