daily pastebin goal
93%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top