performCheck method

Implementation

Future<AdjustHelperCheckOutcome> performCheck() async {
  final cachedOutcome = await _getCachedOutcome();
  if (cachedOutcome != null) {
    return cachedOutcome;
  }

  try {
    final outcome = await _performServerCheck();
    await _cacheOutcome(outcome);
    return outcome;
  } catch (e) {
    return const AdjustHelperCheckOutcome(
      result: AdjustHelperCheckResult.error,
    );
  }
}