Last active
September 26, 2015 17:09
-
-
Save 0x5d/1782f00107870faaf0ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.myfirstapp.api; | |
import com.mycompany.myfirstapp.model.weather.WeatherInfo; | |
import retrofit.Call; | |
import retrofit.http.GET; | |
import retrofit.http.Query; | |
public interface WeatherInfoApi { | |
@GET("/data/2.5/weather") | |
Call<WeatherInfo> getWeatherForName(@Query("q") String name); | |
@GET("/data/2.5/weather") | |
Call<WeatherInfo> getWeatherForCoords(@Query("lat") double lat, @Query("lon") double lon); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment