mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixing Android API util related issues
This commit is contained in:
parent
441a135acb
commit
ab6c2717c9
@ -150,6 +150,11 @@
|
||||
<groupId>org.wso2.carbon</groupId>
|
||||
<artifactId>org.wso2.carbon.utils</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.wso2.carbon</groupId>
|
||||
<artifactId>org.wso2.carbon.device.mgt.common</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<cxf.version>2.6.1</cxf.version>
|
||||
|
||||
@ -17,9 +17,8 @@
|
||||
package cdm.api.android.util;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import org.wso2.carbon.device.mgt.core.dto.Device;
|
||||
import org.wso2.carbon.device.mgt.core.dto.DeviceType;
|
||||
import org.wso2.carbon.device.mgt.mobile.impl.MobileDeviceManagementConstants;
|
||||
import org.wso2.carbon.device.mgt.common.Device;
|
||||
import org.wso2.carbon.device.mgt.common.DeviceManagementConstants;
|
||||
|
||||
/**
|
||||
* AndroidAPIUtil class provides utility function used by Android REST-API classes.
|
||||
@ -35,7 +34,7 @@ public class AndroidAPIUtil {
|
||||
Device device = new Device();
|
||||
DeviceType type = new DeviceType();
|
||||
device.setId(deviceId);
|
||||
type.setName(MobileDeviceManagementConstants.MOBILE_DEVICE_TYPE_ANDROID);
|
||||
type.setName(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_ANDROID);
|
||||
device.setDeviceType(type);
|
||||
return device;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user