Last active
April 19, 2018 22:42
-
-
Save gokselkoksal/e8d38dc9fd17e67bac26d19a4db49915 to your computer and use it in GitHub Desktop.
This file contains 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
protocol MovieListView: MovieListPresenterDelegate { | |
private var presenter: MovieListPresenter | |
func didTapOnReload() | |
func didTapOnMovie(at index: Int) | |
} | |
protocol MovieListPresenterDelegate { | |
func updateWithMoviePresentations(_ movies: [MoviePresentation]) | |
} | |
protocol MovieListPresenter: MovieListViewModelDelegate { | |
private var router: MovieListRouter | |
private var viewModel: MovieListViewModel | |
func reload() | |
func presentation(from movie: Movie) -> MoviePresentation | |
} | |
protocol MovieListRouter { | |
func showDetailView(for movie: Movie) | |
} | |
protocol MovieListViewModelDelegate: class { | |
func viewModelDidUpdate(_ model: MovieListViewModel) | |
} | |
protocol MovieListViewModel { | |
weak var delegate: MovieListViewModelDelegate? { get set } | |
var movies: [Movie] { get } | |
func fetchMovies() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment