Last active
December 18, 2015 14:59
-
-
Save pdeschen/5800836 to your computer and use it in GitHub Desktop.
Rivr data structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String username; | |
String password; | |
int tries = 0; | |
do { | |
tries++; | |
username = processDtmfTurn(askLogin); | |
password = processDtmfTurn(askPassword); | |
askLogin = incorrect; | |
} while (!validate(username, password) && tries < 3); | |
if (tries == 3) { | |
processTurn(audio("goodbye", "vm-goodbye")); | |
return null; | |
} | |
return new User(username, password); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment