Skip to content

Instantly share code, notes, and snippets.

@codedeman
Last active September 20, 2022 02:07
Show Gist options
  • Save codedeman/5d942bf23b02c9f99ea513bac1a937b6 to your computer and use it in GitHub Desktop.
Save codedeman/5d942bf23b02c9f99ea513bac1a937b6 to your computer and use it in GitHub Desktop.
MockMoviePresenter
class MockMoviePresenter:MoviePresenter {
var listMovie:[FilmModel] = []
var isCompleted = false
func didGetListMovie(listMovie: [FilmModel]) {
self.listMovie = listMovie
}
func success(){
self.isCompleted = true
}
func fail() {
self.isCompleted = false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment