Fixing build issues introduced by introducing a static inner class to keep track of device related properties

revert-dabc3590
prabathabey 10 years ago
parent 0543d71f6b
commit fceccb3280

@ -63,7 +63,7 @@ public class AndroidAPIUtils {
} }
device.setProperties(parseProperties(properties)); device.setProperties(parseProperties(properties));
}else{ }else{
device.setProperties(new ArrayList<Property>(0)); device.setProperties(new ArrayList<Device.Property>(0));
} }
if (obj.get(AndroidConstants.DeviceConstants.DEVICE_FEATURES_KEY) != null) { if (obj.get(AndroidConstants.DeviceConstants.DEVICE_FEATURES_KEY) != null) {
@ -78,8 +78,8 @@ public class AndroidAPIUtils {
return device; return device;
} }
private static List<Property> parseProperties(JsonObject properties) { private static List<Device.Property> parseProperties(JsonObject properties) {
List<Property> propertyList = new ArrayList<Property>(0); List<Device.Property> propertyList = new ArrayList<Device.Property>(0);
for (Map.Entry<String, JsonElement> entry : properties.entrySet()) { for (Map.Entry<String, JsonElement> entry : properties.entrySet()) {
propertyList.add(parseProperty(entry.getKey(), entry.getValue())); propertyList.add(parseProperty(entry.getKey(), entry.getValue()));
} }
@ -93,20 +93,18 @@ public class AndroidAPIUtils {
} }
private static List<Feature> parseFeatures(JsonObject features) { private static List<Feature> parseFeatures(JsonObject features) {
List<Feature> featureList = new ArrayList<Feature>(0); return new ArrayList<Feature>(0);
return featureList;
} }
private static Property parseProperty(String property, JsonElement value) { private static Device.Property parseProperty(String property, JsonElement value) {
Property prop = new Property(); Device.Property prop = new Device.Property();
prop.setName(property); prop.setName(property);
prop.setValue(value.getAsString()); prop.setValue(value.getAsString());
return prop; return prop;
} }
private static Feature parseFeature(JsonElement featureElement) { private static Feature parseFeature(JsonElement featureElement) {
Feature feature = new Feature(); return new Feature();
return feature;
} }
public static DeviceIdentifier convertToDeviceIdentifierObject(String deviceId) { public static DeviceIdentifier convertToDeviceIdentifierObject(String deviceId) {

Loading…
Cancel
Save