Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Last active December 18, 2015 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdeschen/5800836 to your computer and use it in GitHub Desktop.
Save pdeschen/5800836 to your computer and use it in GitHub Desktop.
Rivr data structure
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