Beamable SDK
Public Member Functions | Protected Member Functions | Properties | List of all members
Beamable.Server.Api.Stats.MicroserviceStatsApi Class Reference
Inheritance diagram for Beamable.Server.Api.Stats.MicroserviceStatsApi:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Server.Api.Stats.MicroserviceStatsApi:
Collaboration graph
[legend]

Public Member Functions

 MicroserviceStatsApi (IBeamableRequester requester, RequestContext context, UserDataCache< Dictionary< string, string >>.FactoryFunction factoryFunction)
 
Promise< string > GetProtectedPlayerStat (long userId, string stat)
 Retrieve a stat value, by key More...
 
Promise< Dictionary< string, string > > GetProtectedPlayerStats (long userId, string[] stats)
 Retrieve one or more stat values, each by key More...
 
Promise< EmptyResponseSetProtectedPlayerStat (long userId, string key, string value)
 Set a stat value, by key More...
 
Promise< EmptyResponseSetProtectedPlayerStats (long userId, Dictionary< string, string > stats)
 Set one or more stat values, by key More...
 
Promise< EmptyResponseSetStats (string domain, string access, string type, long userId, Dictionary< string, string > stats)
 
Promise< Dictionary< string, string > > GetStats (string domain, string access, string type, long userId, string[] stats)
 
- Public Member Functions inherited from Beamable.Common.Api.Stats.AbsStatsApi
 AbsStatsApi (IBeamableRequester requester, IUserContext userContext, UserDataCache< Dictionary< string, string >>.FactoryFunction cacheFactory)
 
UserDataCache< Dictionary< string, string > > GetCache (string prefix)
 
Promise< EmptyResponseSetStats (string access, Dictionary< string, string > stats)
 
Promise< Dictionary< string, string > > GetStats (string domain, string access, string type, long id)
 

Protected Member Functions

override Promise< Dictionary< long, Dictionary< string, string > > > Resolve (string prefix, List< long > gamerTags)
 

Properties

IBeamableRequester Requester [get]
 
RequestContext Context [get]
 
- Properties inherited from Beamable.Common.Api.Stats.AbsStatsApi
IBeamableRequester Requester [get]
 
IUserContext UserContext [get]
 

Member Function Documentation

◆ GetProtectedPlayerStat()

Promise<string> Beamable.Server.Api.Stats.MicroserviceStatsApi.GetProtectedPlayerStat ( long  userId,
string  key 
)
inline

Retrieve a stat value, by key

Parameters
userId
key
Returns

Implements Beamable.Server.Api.Stats.IMicroserviceStatsApi.

◆ GetProtectedPlayerStats()

Promise<Dictionary<string, string> > Beamable.Server.Api.Stats.MicroserviceStatsApi.GetProtectedPlayerStats ( long  userId,
string[]  stats 
)
inline

Retrieve one or more stat values, each by key

Parameters
userId
key
Returns

Implements Beamable.Server.Api.Stats.IMicroserviceStatsApi.

◆ SetProtectedPlayerStat()

Promise<EmptyResponse> Beamable.Server.Api.Stats.MicroserviceStatsApi.SetProtectedPlayerStat ( long  userId,
string  key,
string  value 
)
inline

Set a stat value, by key

Parameters
userId
key
value
Returns

Implements Beamable.Server.Api.Stats.IMicroserviceStatsApi.

◆ SetProtectedPlayerStats()

Promise<EmptyResponse> Beamable.Server.Api.Stats.MicroserviceStatsApi.SetProtectedPlayerStats ( long  userId,
Dictionary< string, string >  stats 
)
inline

Set one or more stat values, by key

Parameters
userId
stats
Returns

Implements Beamable.Server.Api.Stats.IMicroserviceStatsApi.


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