Created
November 10, 2015 11:01
-
-
Save eofster/669100b5b98d7237ded4 to your computer and use it in GitHub Desktop.
Phone call registry returning non-optional phone call
This file contains 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
protocol PhoneCallRegistry { | |
func callWithIdentifier(identifier: Int) -> PhoneCall | |
} | |
func hangUpCallWithIdentifier(identifier: Int) { | |
phoneCallRegistry.callWithIdentifier(identifier).hangUp() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment