SHARE
TWEET

Untitled

a guest Dec 16th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class NetworkUtils {
  2.  
  3.     companion object {
  4.  
  5.         /** Retorna uma Instância do Client Retrofit para Requisições
  6.          * @param path Caminho Principal da API
  7.          */
  8.         fun getRetrofitInstance(path : String) : Retrofit {
  9.             return Retrofit.Builder()
  10.                 .baseUrl(path)
  11.                 .addConverterFactory(GsonConverterFactory.create())
  12.                 .build()
  13.         }
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top