Class BaseProvider

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected Retrofit retrofit 
    • Constructor Summary

      Constructors 
      Constructor and Description
      BaseProvider(OkHttpClient client, java.lang.String baseUrl, Gson gson)
      Constructor BaseProvider class, internally builds a valid instance of Retrofit
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • retrofit

        protected Retrofit retrofit
    • Constructor Detail

      • BaseProvider

        public BaseProvider(OkHttpClient client,
                            java.lang.String baseUrl,
                            Gson gson)
        Constructor BaseProvider class, internally builds a valid instance of Retrofit
        Parameters:
        client - OkHttpClient instance
        baseUrl - String valid baseUrl to be used by the underlying Retrofit instance
        gson - Gson instance, configured with the marshalling strategies required for the API