Last active
March 3, 2018 23:33
-
-
Save akndmr/c608dbca198a32dc21287549ec1ae71b to your computer and use it in GitHub Desktop.
Popvie - Retrofit HttpClient
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
public class HttpClient { | |
private final static String BASE_URL = "https://api.themoviedb.org/3/"; | |
public final MovieService mMovieService; | |
public HttpClient() { | |
Retrofit retrofit = new Retrofit.Builder() | |
.baseUrl(BASE_URL) | |
.addConverterFactory(GsonConverterFactory.create()) | |
.build(); | |
mMovieService = retrofit.create(MovieService.class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment