HttpGameOutcomeSource class final
- Implemented types
Constructors
- HttpGameOutcomeSource(NetworkClient? _client())
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
getRewardsresponse:{ chances, campaigns, rewards, widget }. Identity travels in the headers; the body stays an empty object. Never throws: a failure is returned for the caller to report asgame_rewards_failed.override -
grantChance(
GrantChanceRequest request) → Future< GrantChanceResult> -
override
-
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
statecall after an entry's game closes.chanceIdis the closed game's own chance, so a re-trigger cannot answer for it.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited