mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 14:32:54 +01:00
make the conversion methods static
This commit is contained in:
parent
092af9f38d
commit
d7f4769f57
@ -10,7 +10,7 @@ public class Weather {
|
|||||||
private static final Weather weather = new Weather();
|
private static final Weather weather = new Weather();
|
||||||
public static Weather getInstance() {return weather;}
|
public static Weather getInstance() {return weather;}
|
||||||
|
|
||||||
public int mapToYahooCondition(int openWeatherMapCondition) {
|
public static int mapToYahooCondition(int openWeatherMapCondition) {
|
||||||
// openweathermap.org conditions:
|
// openweathermap.org conditions:
|
||||||
// http://openweathermap.org/weather-conditions
|
// http://openweathermap.org/weather-conditions
|
||||||
switch (openWeatherMapCondition) {
|
switch (openWeatherMapCondition) {
|
||||||
@ -135,8 +135,7 @@ public class Weather {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int mapToOpenWeatherMapCondition(int yahooCondition) {
|
||||||
public int mapToOpenWeatherMapCondition(int yahooCondition) {
|
|
||||||
switch (yahooCondition) {
|
switch (yahooCondition) {
|
||||||
//yahoo weather conditions:
|
//yahoo weather conditions:
|
||||||
//https://developer.yahoo.com/weather/documentation.html
|
//https://developer.yahoo.com/weather/documentation.html
|
||||||
|
Loading…
Reference in New Issue
Block a user