Skip to content

Instantly share code, notes, and snippets.

@eofster
Created November 10, 2015 11:23
Show Gist options
  • Save eofster/89028527d08fc1de5cc9 to your computer and use it in GitHub Desktop.
Save eofster/89028527d08fc1de5cc9 to your computer and use it in GitHub Desktop.
Usage of the Null Object pattern when hanging up call on account with identifier
func hangUpFirstCallOnAccountWithIdentifier(identifier: Int) {
accountRegistry.accountWithIdentifier(identifier).firstCall.hangUp()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment