AndroidPayQuickstart.FullWalletConfirmationButtonFragment.checkAndRetryFullWallet C# (CSharp) Method

checkAndRetryFullWallet() private method

private checkAndRetryFullWallet ( int errorCode ) : bool
errorCode int
return bool
        bool checkAndRetryFullWallet (int errorCode) 
        {
            if ((errorCode == WalletConstants.ErrorCodeServiceUnavailable ||
                errorCode == WalletConstants.ErrorCodeUnknown) &&
                mRetryLoadFullWalletCount < MAX_FULL_WALLET_RETRIES) {
                mRetryLoadFullWalletCount++;
                getFullWallet();
                return true;
            }
            return false;
        }