feat(WeatherDataAPI): add api name method

This commit is contained in:
Martin Eyben 2024-11-04 10:24:14 +01:00
parent f72b30311c
commit 96c1866978
2 changed files with 7 additions and 0 deletions

View File

@ -65,4 +65,9 @@ public class WeatherAPI implements WeatherDataAPI{
} }
return temperatures; return temperatures;
} }
@Override
public String getAPIName() {
return "WeatherAPI";
}
} }

View File

@ -10,4 +10,6 @@ public interface WeatherDataAPI {
Temperature getTemperature(int day, int hour, String city) throws IOException; Temperature getTemperature(int day, int hour, String city) throws IOException;
ArrayList<Temperature> getTemperatures(int days, String city) throws IOException; ArrayList<Temperature> getTemperatures(int days, String city) throws IOException;
String getAPIName();
} }