Created
November 16, 2017 15:52
-
-
Save prostakm/b104a41d34df397dab4fc7f05b62a368 to your computer and use it in GitHub Desktop.
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 UseCase { | |
func execute() -> String | |
} | |
class ShowDataUseCase: UseCase { | |
let gateway: DataGateway | |
init(dataGateway: DataGateway) { | |
self.gateway = dataGateway | |
} | |
func execute() -> String { | |
return gateway.getData() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment