mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of https://github.com/geethkokila/product-cdm
This commit is contained in:
commit
69c730d147
@ -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…
Reference in New Issue
Block a user