Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Created January 23, 2019 08:19
Show Gist options
  • Save meyusufdemirci/2941a9cbe6ddaf7e6db596ba4cd6f91f to your computer and use it in GitHub Desktop.
Save meyusufdemirci/2941a9cbe6ddaf7e6db596ba4cd6f91f to your computer and use it in GitHub Desktop.
// MARK: Wireframe
protocol HomeWireframeProtocol: class {}
// MARK: Presenter
protocol HomePresenterProtocol: class {
var interactor: HomeInteractorInputProtocol! { get set }
func getContact()
}
// 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 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment