/** * For REST over HTTP(S). Holds the client for other services to put interfaces against. */ public class RestClient { private final Retrofit mClient; public RestClient() { mClient = new Retrofit.Builder() .baseUrl(baseUrl()) .addConverterFactory(JodaDateTimeConverterFactory.create()) .build(); } /** * Creates an implementation of the API defined by the {@link } */ public T create(Class apiInterfaceClass) { return mClient.create(apiInterfaceClass); } }