feat(WeatherDataAPI): add api name method
This commit is contained in:
parent
f72b30311c
commit
96c1866978
@ -65,4 +65,9 @@ public class WeatherAPI implements WeatherDataAPI{
|
|||||||
}
|
}
|
||||||
return temperatures;
|
return temperatures;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getAPIName() {
|
||||||
|
return "WeatherAPI";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user