api/internal/gamification/play_session library

Classes

AdmitBusy
Refused: a game is showing, a direct grant is in flight, or this campaign's is.
AdmitDecision
What PlaySession.admit decides. Open proceeds to the grant; Busy drops the trigger as busy without ever asking. A live test (testSend) is exempt: the open replaces the visible game instead.
AdmitOpen
Admitted: the grant runs, holding the direct and per-campaign guards until it settles.
CloseDecision
What closing a game opened from a floating entry decides.
CloseHide
Dismiss the floater and hide the entry for the session.
CloseKeep
Keep the floater. A non-null replacement replaces the stored chance; null keeps the stored one (a failed call).
PlayDecision
What the caller does with a granted or refused chance. PlaySession only decides: it never opens games, shows entries or logs analytics.
PlayDrop
Anything else: reason is one of the PlaySession.fail* constants. events are the chance events a granted-but-not-shown or denied answer carried . Port of iOS PlayDecision.drop.
PlayIdentity
The identity a play decision is requested for. A null or blank user id means no ask.
PlayOpen
Direct, granted and shown: open the game now.
PlayRequest
PlaySession
The one module that asks the server for a play chance. Pure apart from GameOutcomeSource and the identity provider: every choice is returned as a PlayDecision. Port of Android's PlaySession / iOS PlaySession.
PlayShowEntry
Inline or floating and granted (with or without show): render the entry.
TapDecision
What a tap on a shown entry decides. Never calls grantChance.
TapFail
The tap cannot open: reason is busy or missing_config.
TapOpen