Last active
June 26, 2019 14:29
-
-
Save jpcarreira/fac79acdd4888ec6a5be7bca92f08545 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
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