Implement some further JS methods to make additional watchapps happy

This commit is contained in:
Daniele Gobbetti
2016-03-04 17:44:42 +01:00
parent 3920b3f977
commit 6d4b98719a
3 changed files with 61 additions and 6 deletions
@@ -12,4 +12,16 @@ public class PebbleUtils {
}
return platformName;
}
public static String getModel(String hwRev) {
//TODO: get real data?
String model;
if (hwRev.startsWith("snowy")) {
model = "pebble_time_black";
} else if (hwRev.startsWith("spalding")) {
model = "pebble_time_round_black_20mm";
} else {
model = "pebble_black";
}
return model;
}
}