GameHttpBridge class

The generic pass-through behind bridge http requests: {method, path, body?} goes to {baseUrl}/api/v1/engage/sdk/gamification/{path} with the SDK's usual auth/identity headers (they ride NetworkClient.execute automatically). New backend endpoints reach skins with no SDK update; grantChance stays denied so a skin cannot grant itself chances.

2xx and 4xx answer {status, body} with the backend JSON unchanged (a 4xx carries the backend's reason, so the skin decides what to show); a non-JSON or empty body is null. 5xx answers server, a timeout timeout, any other transport failure network. 20 s per phase. Redirects are never followed for the skin: any 3xx that surfaces answers network, so a skin can never be led off the gamification API. Never throws.

Constructors

GameHttpBridge(NetworkClient _networkClient)

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

call(String method, String path, Map<String, dynamic>? body) → Future<GameHttpOutcome>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

timeoutMs → const int