Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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