doc: add docstring for WeatherAPI.getTemperature

This commit is contained in:
Nemo D'ACREMONT 2024-11-09 16:45:44 +01:00
parent dc6fbd8c4e
commit a56bc2eb81
No known key found for this signature in database
GPG Key ID: 6E5BCE8022FA8276

View File

@ -40,6 +40,9 @@ public class WeatherAPI implements WeatherDataAPI{
return new JSONObject(result.toString()); return new JSONObject(result.toString());
} }
/**
* @param day Day, 0 ≤ day ≤ 14
*/
@Override @Override
public Temperature getTemperature(int day, String city) throws IOException { public Temperature getTemperature(int day, String city) throws IOException {
JSONObject result = fetchWeather(day+1, city); JSONObject result = fetchWeather(day+1, city);