Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created August 9, 2018 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/f10c4af16598cc923ad2ee71bd8ef3f9 to your computer and use it in GitHub Desktop.
Save jezinka/f10c4af16598cc923ad2ee71bd8ef3f9 to your computer and use it in GitHub Desktop.
public interface WeatherService {
@GET("data.json")
Call<JsonObject> loadData();
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BuildConfig.WEATHER_ADDRESS)
.addConverterFactory(GsonConverterFactory.create())
.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment