Atualizado
This commit is contained in:
12
app/src/main/java/com/example/bem/WeatherService.java
Normal file
12
app/src/main/java/com/example/bem/WeatherService.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.example.bem;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Query;
|
||||
|
||||
public interface WeatherService {
|
||||
@GET("v1/forecast?current_weather=true")
|
||||
Call<WeatherResponse> getCurrentWeather(
|
||||
@Query("latitude") double latitude,
|
||||
@Query("longitude") double longitude);
|
||||
}
|
||||
Reference in New Issue
Block a user