Guest User

Untitled

a guest
Jan 24th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. class HomePresenter {
  2. var view: HomeViewProtocol!
  3. var interactor: HomeInteractorInputProtocol!
  4. var router: HomeWireframeProtocol!
  5. }
  6.  
  7. extension HomePresenter: HomePresenterProtocol {
  8. func getContact() {
  9. interactor.getContactFromService()
  10. }
  11.  
  12. func showContactDetail(contact: Contact) {
  13. router.showContactDetail(contact: contact)
  14. }
  15. }
  16.  
  17. extension HomePresenter: HomeInteractorOutputProtocol {
  18. func gotContact(contact: [Contact]) {
  19. view.showContact(contact: contact)
  20. }
  21. }
Add Comment
Please, Sign In to add comment