Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- }
- }
Add Comment
Please, Sign In to add comment