-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOpenWeatherApp.java
More file actions
22 lines (18 loc) · 961 Bytes
/
IOpenWeatherApp.java
File metadata and controls
22 lines (18 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.example.weatherapp.Retrofit;
import com.example.weatherapp.Model.WeatherForecastResult;
import com.example.weatherapp.Model.WeatherResult;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface IOpenWeatherApp {
@GET("weather")
Observable<WeatherResult> getWeather(@Query("lat") String lat,
@Query("lon") String lon,
@Query("appid") String appid,
@Query("units") String units);
@GET("forecast")
Observable<WeatherForecastResult> getWeatherForecast(@Query("lat") String lat,
@Query("lon") String lon,
@Query("appid") String appid,
@Query("units") String units);
}