Guest User

Untitled

a guest
Jan 23rd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. class HomeInteractor {
  2. var presenter: HomeInteractorOutputProtocol!
  3. }
  4.  
  5. extension HomeInteractor: HomeInteractorInputProtocol {
  6. func getContactFromService() {
  7. var contacts = [Contact]()
  8.  
  9. var yusuf = Contact(fullname: "Yusuf", gsm: "05311111111")
  10. contacts.append(yusuf)
  11.  
  12. var ali = Contact(fullname: "Ali", gsm: "05322222222")
  13. contacts.append(ali)
  14.  
  15. var mahmut = Contact(fullname: "Mahmut", gsm: "05333333333")
  16. contacts.append(mahmut)
  17.  
  18. presenter.gotContact(contact: contacts)
  19. }
  20. }
Add Comment
Please, Sign In to add comment