Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.bertho.tdashboard.rest;
- import retrofit2.Retrofit;
- import retrofit2.converter.gson.GsonConverterFactory;
- public class ApiClient {
- public static final String GET_VISIT_URL = "http://www.berthojoris.com/";
- private static Retrofit retrofit = null;
- public static Retrofit getVisitor() {
- if (retrofit==null) {
- retrofit = new Retrofit.Builder()
- .baseUrl(GET_VISIT_URL)
- .addConverterFactory(GsonConverterFactory.create())
- .build();
- }
- return retrofit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement