Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created February 17, 2019 09:02
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/1a55f5acf48be01e1f6263a142606d38 to your computer and use it in GitHub Desktop.
Save jezinka/1a55f5acf48be01e1f6263a142606d38 to your computer and use it in GitHub Desktop.
public interface WeatherService {
@GET("sensorFriendly")
Call<List<Sensor>> loadData();
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BuildConfig.WEATHER_ADDRESS)
.addConverterFactory(MoshiConverterFactory.create())
.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment