Beamable SDK
Public Member Functions | Static Public Attributes | Protected Member Functions | Properties | List of all members
Beamable.Common.Api.Events.AbsEventsApi Class Referenceabstract
Inheritance diagram for Beamable.Common.Api.Events.AbsEventsApi:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Api.Events.AbsEventsApi:
Collaboration graph
[legend]

Public Member Functions

virtual Promise< EventClaimResponseClaim (string eventId)
 
virtual Promise< UnitSetScore (string eventId, double score, bool incremental=false, IDictionary< string, object > stats=null)
 Submit a score for the current player. Note that this is only allowed if the event has the write_self permission. More...
 
abstract Promise< EventsGetResponseGetCurrent (string scope="")
 
- Public Member Functions inherited from Beamable.Common.Api.ISupportsGet< EventsGetResponse >
Promise< TData > GetCurrent (string scope="")
 

Static Public Attributes

const string SERVICE_NAME = "event-players"
 

Protected Member Functions

 AbsEventsApi (IBeamableRequester requester, IUserContext ctx)
 

Properties

IBeamableRequester Requester [get]
 
IUserContext Ctx [get]
 

Member Function Documentation

◆ SetScore()

virtual Promise<Unit> Beamable.Common.Api.Events.AbsEventsApi.SetScore ( string  eventId,
double  score,
bool  incremental = false,
IDictionary< string, object >  stats = null 
)
inlinevirtual

Submit a score for the current player. Note that this is only allowed if the event has the write_self permission.

Parameters
eventIdFull ID of the event, including timestamp suffix.
scoreThe score to submit (or score delta if incremental).
incrementalIf incremental is true, add to the existing score, otherwise set it absolutely.
statsOptional key-value mapping of stats to apply to the score.
Returns
Promise indicating success or failure.

Implements Beamable.Common.Api.Events.IEventsApi.


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