Created
January 23, 2019 08:22
-
-
Save meyusufdemirci/1eb9be0ee942764847de752dd2f02eeb 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 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