GameOutcomeSource class abstract interface

The one seam for the gamification backend calls. Single attempt, never throws. Gameplay itself is a bridge http POST the skin sends, so no play call lives here. Port of Android's GameOutcomeSource.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getRewards() → Future<GetRewardsOutcome>
The rewards page and widget data. Identity travels in the headers, as on every other call; the body stays an empty object.
grantChance(GrantChanceRequest request) → Future<GrantChanceResult>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
state(String campaignKey, {String? testInvocationId, String? chanceId}) → Future<ChanceStateResult>
The read-only state call after an entry's game closes. chanceId is the closed game's own chance, so a re-trigger cannot answer for it.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited