Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Created January 23, 2019 10:59
Show Gist options
  • Save meyusufdemirci/309626e7582c4c8565ff1682fb6c4f52 to your computer and use it in GitHub Desktop.
Save meyusufdemirci/309626e7582c4c8565ff1682fb6c4f52 to your computer and use it in GitHub Desktop.
// MARK: Wireframe
protocol HomeWireframeProtocol: class {
func showContactDetail(contact: Contact)
}
// MARK: Presenter
protocol HomePresenterProtocol: class {
var interactor: HomeInteractorInputProtocol! { get set }
func getContact()
func showContactDetail(contact: Contact)
}
// MARK: Interactor
// Interactor -> Presenter
protocol HomeInteractorOutputProtocol: class {
func gotContact(contact: [Contact])
}
// Presenter -> Interactor
protocol HomeInteractorInputProtocol: class {
var presenter: HomeInteractorOutputProtocol! { get set }
func getContactFromService()
}
// MARK: View
protocol HomeViewProtocol {
var presenter: HomePresenterProtocol! { get set }
func showContact(contact: [Contact])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment