Created
January 23, 2019 11:00
-
-
Save meyusufdemirci/3df48db0653a8497057304fdd038e0f6 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() | |
| } | |
| func showContactDetail(contact: Contact) { | |
| router.showContactDetail(contact: contact) | |
| } | |
| } | |
| 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