Created
January 23, 2019 10:59
-
-
Save meyusufdemirci/309626e7582c4c8565ff1682fb6c4f52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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