Created
January 23, 2019 08:23
-
-
Save meyusufdemirci/4981843f8bb2588c4e5919cb047b1022 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 {} | |
// 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 } | |
func showContact(contact: [Contact]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment