rewardsCode method

String rewardsCode()

The game_rewards_failed code for this failure.

Implementation

String rewardsCode() => timedOut
    ? 'timeout'
    : switch (failure) {
        GameOutcomeFailure.transport => 'network',
        GameOutcomeFailure.httpStatus => 'status',
        GameOutcomeFailure.invalidResponse => 'invalid_response',
      };