Created
April 25, 2018 01:06
-
-
Save trupin/51fa324385c9435860a70387d54c9e65 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 MovieManaging { | |
/// Fetches popular movies from the server, then stores them. | |
func getPopularMovies(_ completion: @escaping (Result<[Movie], MovieManagerError>) -> Void) | |
/// Fetches a movie from the store if it exists, from the server otherwise. | |
func getMovie(id movieID: String, completion: @escaping (Result<Movie, MovieManagerError>) -> Void) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment