Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Last active January 23, 2019 08:18
Show Gist options
  • Save meyusufdemirci/39941fbed3a841cea396d5d86c5d727d to your computer and use it in GitHub Desktop.
Save meyusufdemirci/39941fbed3a841cea396d5d86c5d727d to your computer and use it in GitHub Desktop.
class HomeInteractor {
var presenter: HomeInteractorOutputProtocol!
}
extension HomeInteractor: HomeInteractorInputProtocol {
func getContactFromService() {
var contacts = [Contact]()
var yusuf = Contact(fullname: "Yusuf", gsm: "05311111111")
contacts.append(yusuf)
var ali = Contact(fullname: "Ali", gsm: "05322222222")
contacts.append(ali)
var mahmut = Contact(fullname: "Mahmut", gsm: "05333333333")
contacts.append(mahmut)
presenter.gotContact(contact: contacts)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment