Skip to content

Instantly share code, notes, and snippets.

@jpcarreira
Last active June 26, 2019 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpcarreira/fac79acdd4888ec6a5be7bca92f08545 to your computer and use it in GitHub Desktop.
Save jpcarreira/fac79acdd4888ec6a5be7bca92f08545 to your computer and use it in GitHub Desktop.
final class ApiClient: Api {
func fetchMovies(completion: @escaping (Bool, FilmsData?) -> Void) {
// reach the actual API
}
}
final class MockApiClient: Api {
func fetchMovies(completion: @escaping (Bool, FilmsData?) -> Void) {
// mock API data
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment