GamificationForceClient

The GamificationForceClient class handles network requests using the GamificationForceAuthenticator protocol.

This class uses a NetworkManager instance to handle network requests and data processing.

Use this initializer to initialize the GamificationForceClient class.

ParameterTypeDescription
authGamificationForceAuthenticatorAn instance of the GamificationForceAuthenticator protocol.
forceNetworkManagerNetworkManagerProtocolA NetworkManager instance.

Returns a decoded JSON response result from the given local JSON file.

ParameterTypeDescription
typeT.TypeThe model to be used by the JSON decoder.
fileStringThe file name of a local JSON file.
bundleBundleThe app bundle name.

Returns a decoded JSON response result.

ParameterTypeDescription
typeT.TypeThe model to be used by the JSON decoder.
requestURLRequestThe URL request to be executed by the URL session.
urlSessionURLSessionAn instance of URLSession to execute the request.