Created
November 5, 2015 18:14
-
-
Save anonymous/b35e86ea052464e3bbc8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class CarListPresenter { | |
private let ui: CarListUI | |
private let useCase: GetCarList | |
private let wireFrame: CarWireframe | |
init(ui: CarListUI, useCase: GetCarList,) { | |
self.ui = ui | |
self.useCase = useCase | |
} | |
func viewDidLoad() { | |
useCase.execute { result in | |
self.ui.showCars(result.value!) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment