Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NetworkUtils {
- companion object {
- /** Retorna uma Instância do Client Retrofit para Requisições
- * @param path Caminho Principal da API
- */
- fun getRetrofitInstance(path : String) : Retrofit {
- return Retrofit.Builder()
- .baseUrl(path)
- .addConverterFactory(GsonConverterFactory.create())
- .build()
- }
- }
- }
Add Comment
Please, Sign In to add comment