Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Created January 23, 2019 08:22
Show Gist options
  • Save meyusufdemirci/1eb9be0ee942764847de752dd2f02eeb to your computer and use it in GitHub Desktop.
Save meyusufdemirci/1eb9be0ee942764847de752dd2f02eeb to your computer and use it in GitHub Desktop.
class HomePresenter {
var view: HomeViewProtocol!
var interactor: HomeInteractorInputProtocol!
var router: HomeWireframeProtocol!
}
extension HomePresenter: HomePresenterProtocol {
func getContact() {
interactor.getContactFromService()
}
}
extension HomePresenter: HomeInteractorOutputProtocol {
func gotContact(contact: [Contact]) {
view.showContact(contact: contact)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment